Click or drag to resize
Ab4d.SharpEngine logo

SoftShadowRenderingProviderShadowNormalBias Property

Gets or sets the normal bias used to reduce shadow artifacts, such as shadow acne, caused by precision issues in shadow mapping. This value offsets the position of the shadow receiver along its normal vector. A higher value increases the bias, which can help reduce artifacts but may also cause shadows to appear detached from objects. The default value is 1.0.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public float ShadowNormalBias { get; set; }

Property Value

Single
Remarks
Adjusting the normal bias is particularly useful when dealing with surfaces that are nearly parallel to the light direction, as these are more prone to shadow artifacts.
See Also