Optionalopts: ShadowFeatureOptionsReadonlynameStable identifier used for lookup, signature hashing, and pass-name keying.
When false, the feature is skipped each frame. Toggling triggers a cached-graph invalidation.
Filled in by update each frame; reused by addPasses.
External shadow caster overrides; when null, uses frame.shadowCasters.
Active shadow mode ('cascade' | 'clipmap').
Virtual-shadow-map page pooling (only with mode:'clipmap'). Mutable at runtime.
Optional clustered-mesh caster for the virtualized clipmap path. Set by
ClusterGeometryFeature so meshlet geometry casts into the page pool.
Register an ADDITIVE source of static instanced shadow casters (the geometry pass's InstancedBatches) — merged every frame. Lets foliage / prop scatterers cast shadows without owning the feature's configuration. Returns an unregister fn.
Release GPU resources.
Cascaded directional shadow map. Writes
frame.shadowMapand stashes the frame's cascades + caster list onframe.extrasfor downstream consumers (e.g. aBlockShadowFeaturechain).