API

Interface CsmRefitGateOptions

Options for createCsmRefitGate.

interface CsmRefitGateOptions {
    demoteQuietFrames?: number;
    refitAngle: number;
    refitMaxIntervalMs: number;
}
Index
demoteQuietFrames?: number

Consecutive quiet frames before a dynamic caster becomes demotion-pending. Default 120.

refitAngle: number

Accumulated sun-rotation angle (radians) since the last refit that forces the next one. The sun drifts a different float every frame in normal play, so an exact-equality light key would never hold; this epsilon is what lets the cache survive a slowly moving sun.

refitMaxIntervalMs: number

Wall-time floor: force a refit this many ms after the previous one. GPU-clock-animated casters (wind-swayed flora) classify as static, so their shadow only moves at refit cadence even while the light is paused. 0 disables the floor.