Interface CsmStaticCacheOptions
interface CsmStaticCacheOptions {
refitAngle: number;
refitMaxIntervalMs?: number;
staticCascadesPerFrame?: number;
}
refitAngle: number;
refitMaxIntervalMs?: number;
staticCascadesPerFrame?: number;
}
Properties
refit Angle
refitAngle: number
Accumulated sun-rotation angle (radians) since the last cascade refit that forces the next one.
Optionalrefit Max Interval Ms
refitMaxIntervalMs?: number
Force a refit after this much wall time, including while the light is paused. Default 0 (no interval floor).
Optionalstatic Cascades Per Frame
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.
Options for enableCsmStaticCache.