benilla-re systems structs docs

BuildLightTable

function · lighting · primitive

Address
0x6d2260 · 2710 bytes, up to 0x6d2cf5
Meaning
Builds the frame's light table from the area lights, the liquid and the override
Confidence
verified, proof one
Finding
lighting/daynight#light-table-build
Test
lighting::dn_color_table_build_difftest, lighting::dn_color_table_edges_difftest

Finding: Light table build in lighting: day-night

0x6d2260 builds the light table from the camera's liquid. Dry or in water or ocean, the table is the light list's slot 0 record gathered with reference k (1 underwater, 0 otherwise), blended with reference k + 2 by the storm weight when it is above 0, then the area lights. In magma it is LightParams 7 and in slime LightParams 6, gathered straight into the table; any other liquid kind leaves the table as it was. Before any map loads it is the default table.

The derivation is in the doc.

Callers 2

Callees 16

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