API

Interface CsmStaticCacheOptions

Options for enableCsmStaticCache.

interface CsmStaticCacheOptions {
    refitAngle: number;
    refitMaxIntervalMs?: number;
    staticCascadesPerFrame?: number;
}
Index
refitAngle: number

Accumulated sun-rotation angle (radians) since the last cascade refit that forces the next one.

refitMaxIntervalMs?: number

Force a refit after this much wall time, including while the light is paused. Default 0 (no interval floor).

staticCascadesPerFrame?: number

Spread a drift-only refit's static re-render over frames: at most this many cascades are re-rendered per frame, round-robin, so the periodic refresh costs a slice of every frame instead of one long frame. Refits caused by the camera, the content or the caster membership still re-render every cascade in their own frame. 0 or omitted keeps the single-frame re-render.