Shadow caster

shadow_caster

Enables a light to cast shadows.

Dependencies

Attributes

AttributeTypeDefaultDescription
biasfloat0.002Bias to apply to avoid self shadowing artifacts.
nearDistfloat0.1Distance to the near plane.
farDistfloat100Distance to the far plane.
qualityinteger1024Resolution of the shadow map.
cascadeSplitLambdafloat0.94For directional lights, adjusts the distribution of cascade splits in Cascaded Shadow Mapping for directional lights. A value of 0 results in uniform (linear) splits across the view frustum, while a value of 1 skews the splits toward the camera, providing higher shadow resolution near the viewer and lower resolution in the distance. Intermediate values blend linear and logarithmic distributions for a balanced result. The value ranges from 0 to 1.
cascadeCountinteger4For directional lights, number of cascades.
accumulateShadowCascadesbooltrueFor directional lights, accumulate all shadow cascades.