benilla-re systems structs docs

M2SceneAddLightsForPoint

function · models · primitive

Address
0x70a0f0 · 312 bytes, up to 0x70a227
Meaning
Adds a scene's global lights and the grid lights around a point to a lighting record
Confidence
verified, proof one
Finding
models/lights#scene-light-grid
Test
models::attach_light_grid_window_difftest

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.

Callers 6

Callees 4

Calls and jumps by a bare address, from tables/calls.tsv.