Template:KV BmNewLightShadowBias: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 35: Line 35:
:{{important|Increasing this value will make shadows between different surfaces less accurate, greate example is third picture in examples, there you can see "two" shadows from railing.}}
:{{important|Increasing this value will make shadows between different surfaces less accurate, greate example is third picture in examples, there you can see "two" shadows from railing.}}
:{{bug|hidetested=1|Numbers lower than 0.8 can cause huge graphics issues. [https://youtu.be/WkbWr2lACbw Example].}}
:{{bug|hidetested=1|Numbers lower than 0.8 can cause huge graphics issues. [https://youtu.be/WkbWr2lACbw Example].}}
:{{tip|Increase this value if you are getting aliasing issues like [https://youtu.be/y7zkMMKaFGM this].}}
}}
}}

Revision as of 10:46, 31 January 2025


DepthBias (DepthBias) <float>
DepthBias is offset added to depth values in shadowmaps.
Examples


SlopeDepthBias (SlopeDepthBias) <float>
Slope Depth Bias used for surfaces having aliasing due to steep angles with light.
Examples
NormalBias (NormalBias) <float>
While rendering objects into shadowmaps, each vertex will be moved along -ve Normal direction, giving it an appearance of shrinking while rendering to shadowmaps. This property determines the amount of Units to be moved. Helps with shadow aliasing.
Examples
Note.pngNote:You will not see any changes if your material doesn't not provide bumpmap.
Icon-Important.pngImportant:Increasing this value will make shadows between different surfaces less accurate, greate example is third picture in examples, there you can see "two" shadows from railing.
Icon-Bug.pngBug:Numbers lower than 0.8 can cause huge graphics issues. Example.
Tip.pngTip:Increase this value if you are getting aliasing issues like this.