s_m2LightGridScale
global · models
- Address
0xceffec· 4 bytes, up to0xceffef- Type
float- Meaning
- Holds the scale from world units to a scene light grid cell
- Confidence
- verified, proof one
- Finding
- models/lights#scene-light-grid
Finding: Scene light grid in models: lights
An enabled point light links into one of the scene's 64×64 grid cells, floor(x·s) & 63 by
floor(y·s) & 63 with the scene scale s; any other light links into the scene's global list.
The grid is allocated on the first point light. Adding a point's lights to a record takes every
global light and every light of the cells its radius covers, and disables a grid light whose
frame stamp is stale instead of adding it.
The derivation is in the doc.