s_m2LightLinkGridScale
global · models
- Address
0xcf04d0· 4 bytes, up to0xcf04d3- Type
float- Meaning
- Holds the scale from world units to a light grid cell when a light links into the grid
- 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.