Tutorial: Shadow caster

Shadow caster

shadow_caster

Enables a light to cast shadows.

Dependencies

  • point_light

Attributes

Attribute Type Default Description
bias float 0.001 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 int32_t 1024 Resolution of the shadow map.
accumulateShadowCascades bool true For directional lights, accumulate all shadow cascades.