SetModelVisibility
function · terrain · orchestration
- Address
0x672d20· 82 bytes, up to0x672d71- Signature
void __fastcall (void *model, uint32_t a, uint32_t b, uint32_t arg4, uint32_t arg5)- Meaning
- Enables or disables a model's two flags
- Confidence
- verified, proof one
- Finding
- terrain/world#model-fade-out
Finding: Model fade-out in terrain: world
0x672df0 fades a removed model: when the model is ready and the fade value is at least 0.01
(or NaN) it records the model, the clock time and the value, and installs 0x672d20 as the model's
callback; otherwise it releases the model at once. 0x672ef0 runs each frame: a record older
than 2000 ms releases its model; a younger one sets the model's alpha to (3 − 2x)x², x = (1 −
age × 0.0005) × the value, with 0 for x ≤ 0 and 1 for x > 1.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 2
- CM2Model::SetAnimated models
- CM2Model::SetVisible models
Calls and jumps by a bare address, from tables/calls.tsv.