MAX_LIGHTS_PER_TILE
constMAX_LIGHTS_PER_TILE:16=16
Defined in: packages/three-flatland/src/lights/ForwardPlusLighting.ts:44
Max lights any single tile can hold. Each tile dedicates
MAX_LIGHTS_PER_TILE / 4 = 4 RGBA texels to light indices. Caps
the per-fragment shader loop iteration count — the inner loop
breaks early on the empty-slot sentinel, so tiles with fewer lights
pay only for what they hold.
Raising this increases tile-texture footprint and the saturated- tile shader worst case. Lowering it makes reservoir eviction kick in sooner in dense scenes.