Interface CsmRefitGateOptions
interface CsmRefitGateOptions {
demoteQuietFrames?: number;
refitAngle: number;
refitMaxIntervalMs: number;
}
demoteQuietFrames?: number;
refitAngle: number;
refitMaxIntervalMs: number;
}
Properties
Optionaldemote Quiet Frames
demoteQuietFrames?: number
Consecutive quiet frames before a dynamic caster becomes demotion-pending. Default 120.
refit Angle
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.
refit Max Interval Ms
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.
Options for createCsmRefitGate.