benilla-re systems structs docs

ScaleLightPositions

function · lighting · orchestration

Address
0x6d60c0 · 62 bytes, up to 0x6d60fd
Meaning
Runs the Light position conversion over every record at 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 1

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