 |
SoftShadowRenderingProviderShadowSlopeBias Property |
Gets or sets the slope-scaled depth bias used to reduce shadow artifacts, such as shadow acne,
caused by precision issues in shadow mapping. This value adjusts the bias based on the slope
of the surface relative to the light direction.
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.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic float ShadowSlopeBias { get; set; }Property Value
Single
Remarks
The effectiveness of this property depends on the specific 3D scene and lighting configuration.
Adjust this value carefully to balance artifact reduction and visual accuracy.
See Also