shadow_caster
Enables a light to cast shadows.
Dependencies
Attributes
Attribute | Type | Default | Description |
---|---|---|---|
bias | float | 0.002 | Bias to apply to avoid self shadowing artifacts. |
nearDist | float | 0.1 | Distance to the near plane. |
farDist | float | 100 | Distance to the far plane. |
quality | integer | 1024 | Resolution of the shadow map. |
cascadeSplitLambda | float | 0.94 | For 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. |
cascadeCount | integer | 4 | For directional lights, number of cascades. |
accumulateShadowCascades | bool | true | For directional lights, accumulate all shadow cascades. |