benilla-re systems structs docs

FinishLightTables

function · lighting · orchestration

Address
0x6d6160 · 16 bytes, up to 0x6d616f
Meaning
Converts the Light and fog band records once the tables load
Confidence
verified, proof one
Finding
lighting/tables#light-positions-at-load

Finding: Light positions at load in lighting: tables

At load the client converts every Light record not at the origin: it multiplies x, y, z and both radii by f32(1/36) (0x3ce38e39) and moves the point into world axes, x' = c − z·(1/36), y' = c − x·(1/36), z' = y·(1/36), with c = 17066.666 when the map is not one object and 0 when it is. A record at (0, 0, 0) keeps its file values, radii included.

The derivation is in the doc.

Callers 1

Callees 2

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