CM2Model::UpdateLighting
function · models · orchestration
- Address
0x7192b0· 191 bytes, up to0x71936e- 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
- M2SceneAnimateAndCollect models
Callees 5
- M2SceneAddLightsForPoint models
- CM2Model::GetPositionInScene models
- M2LightingInitialize models
- M2LightingTransformToView models
- M2LightingDeriveDominantLight models
Calls and jumps by a bare address, from tables/calls.tsv.