CascadeShadowMap

Cascade shadow map configuration options.

Constructor

new CascadeShadowMap()

Properties
NameTypeDescription
enabled

Enables cascade shadow rendering.

size

Shadow map texture size in pixels.

cascadeCount

Number of generated cascade splits when cascades is not provided.

maxDistance

Maximum camera distance covered by all cascade splits.

splitLambda

Blend factor between uniform and logarithmic split distribution.

verticalViewAngle

Vertical view angle for the orthographic cascade camera.

casterMargin

Minimum light-space depth margin for shadow casters in world units.

excludeLayers

Vector layers excluded from cascade shadow rendering.

cascades

Per-cascade parameter overrides. When provided, its length defines cascade count.

Methods

_computeCascadeBoundingSphere()

Computes a minimum bounding sphere for the main camera perspective frustum slice. Cascade split distances are linear distances from the main camera eye.