Template:KV BmNewLightShadowBias: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Indented Expand and removed its margin_left.)
No edit summary
Line 26: Line 26:
{{KV|NormalBias|intn=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.
{{KV|NormalBias|intn=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.
:{{expand|title=Examples|
:{{expand|title=Examples|
{{note|You will not see any changes if your material doesn't not provide [[bumpmap]].}}
<gallery mode=packed heights=290px>
<gallery mode=packed heights=290px>
File:cNB1.jpg| thumb | left | 510px | NormalBias - 1
File:NormalBias1.jpg| thumb | left | 510px | NormalBias - 1
File:cNB2.jpg| thumb | left | 510px | NormalBias - 5
File:NormalBias5.jpg| thumb | left | 510px | NormalBias - 5
File:cNB3.jpg| thumb | left | 510px | NormalBias - 10
File:NormalBias20.jpg| thumb | left | 510px | NormalBias - 20
</gallery>
}}
:{{bug|hidetested=1|Numbers lower than 0.8 can cause huge graphics problems.}}
:{{expand|title=The bug example|
<gallery mode=packed heights=720px>
File:cNormalBiasBug.gif| frame | NormalBias - 0
</gallery>
</gallery>
}}
}}
:{{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].}}
}}
}}

Revision as of 03:11, 22 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.