Protected
_Protected
Optional
_Protected
_Automatically attach to first found directional light in the scene if none is attached yet.
Cascade break points in normalized depth [0-1]
Optional
cameraCurrent camera used for frustum calculations
Optional
customCustom callback for defining cascade splits when mode is 'custom'
Enable/disable the cascaded shadow maps plugin
Extended break data for shader uniforms
Enable fade between cascades for smoother transitions
Individual frustums for each cascade
Optional
lightThe main directional light that CSM will be applied to
Generated directional lights for each cascade
Main camera frustum for cascade calculation
Maximum far distance for shadow calculation
Cascade splitting mode: uniform, logarithmic, practical, or custom
Parent object containing all CSM lights
Static
Optional
Readonly
OldStatic
Readonly
PluginTotal cascades
Protected
_Protected
_Protected
_Protected
_Optional
prefix: stringProtected
_Protected
_Optional
meta: SerializationMetaTypeOptional
e: anyConfigure shadow parameters for a specific light
CSM light configuration parameters
Optional
light: DirectionalLight & IObject3D<Target light (uses attached light if not specified)
Optional
meta: SerializationMetaType
Cascaded Shadow Maps (CSM) plugin for high-quality directional light shadows across large scenes.
This plugin implements cascaded shadow mapping to provide better shadow quality across different distances from the camera by splitting the view frustum into multiple cascades, each with its own shadow map at an appropriate resolution.
Features:
Original three-csm implementation - https://github.com/StrandedKitty/three-csm
Example