Skip to content

@modoki/engine / index / pickSceneLights

Function: pickSceneLights() ​

pickSceneLights(lights): PickedLights

Pick the shader light set from all scene lights. Pure: same input → same output, no globals. Ambients are summed; the brightest directional becomes the key; point/spot lights are ranked by intensity and capped.

Parameters ​

lights ​

LightSample[]

Returns ​

PickedLights

Built with Modoki.