M2LightInitialize
function · models · orchestration
- Address
0x71b4a0· 97 bytes, up to0x71b500- Meaning
- Initializes a light: point type, zero colours and position, attenuation 0.7 and 0.03, unlinked
- Confidence
- verified, proof one
- Finding
- models/lights#light-object
Finding: Light object in models: lights
0x71b4a0 initializes a light: type 1 (point), zero position, direction and colours, attenuation
0.7 at +0x58 and 0.03 at +0x5c, disabled and unlinked. A light belongs to a scene (+0x0,
with the scene's frame minus one at +0x4); setting its type or position relinks an enabled
point light, and enabling links it.
| offset | holds |
|---|---|
+0x008 | type: 1 point, other values directional |
+0x00c | position |
+0x024 | direction, normalized unless shorter than 2.384186e-7 |
+0x030, +0x03c, +0x048 | ambient, diffuse and third colour |
+0x060 | enabled |
+0x064, +0x068 | link: address of the previous link, next light |
The derivation is in the doc.
Callers 6
- CharSelectLightCallback glue
- AllocCacheLight terrain
- CMapLight::CMapLight terrain
- M2LightStateConstruct models
- CSimpleModel::CSimpleModel ui
- Model::SetLight ui
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.