benilla-re systems structs docs

ScaleLightPosition

function · lighting · primitive

Address
0x6d5fb0 · 219 bytes, up to 0x6d608a
Meaning
Converts a Light record's position and radii from file units at load
Confidence
verified, proof one
Finding
lighting/tables#light-positions-at-load
Test
lighting::vec_scale_remap_difftest

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.