Skip to main content

Interface: LocalLightSample

Zero-allocation output target for LocalLights.queryLocalLights.

Properties​

claim​

• claim: number

Unoccluded luminance the cell-held lights claim at the point (falloff and cone shaping only — no flicker, occlusion, shadows, or rim fade). Consumers that also apply a baked flood term scale that term by the flood remainder derived from this claim and windowFade, mirroring the chunk shader's ownership blend, so a point covered by analytic lights is never lit by both models.


color​

• color: [number, number, number]

Combined linear RGB arriving at the query point, already scaled by the window-rim fade like the chunk shader's analytic term.


count​

• count: number

Lights that contributed.


lightHue​

• Optional lightHue: [number, number, number]

Colour of the cell's lights at the point, written when present: each light's colour by inverse square distance, with no range cutoff. The flood term borrows it for the channels it has run out of (blockLightCurveRGB's fill), mirroring the chunk shader's llLightHue.


windowFade​

• windowFade: number

Window-rim fade at the point (1 deep inside the grid window, 0 at and beyond its edge) — the crossfade weight between the owned composition and the legacy flood frame.