benilla-re systems structs docs

CM2Model::UpdateLighting

function · models · orchestration

Address
0x7192b0 · 191 bytes, up to 0x71936e
Meaning
Builds an instance's lighting record from the scene lights at its position and its lighting callback
Confidence
verified, proof one
Finding
models/lights#instance-lighting

Finding: Instance lighting in models: lights

An instance draws with its parent's record when it has a parent created without flag 1, else with its own at +0x204. Building its own: the record starts at the world translation +0x12c through the scene matrix, radius 0; it takes the scene's lights for that point, then the owner's callback +0x3bc(instance, record, +0x3c0) when set, then derives the dominant light and moves the lights to view space. When the instance has attachment states, its children with a resolved attachment index update after it.

The derivation is in the doc.

Callers 1

Callees 5

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