benilla-re systems structs docs

CWorld::FadeOutModel

function · terrain · orchestration

Address
0x672df0 · 242 bytes, up to 0x672ee1
Signature
void __thiscall (CWorld *this, uint32_t arg2)
Meaning
Schedules a ready model to fade out, or releases it when not ready or the value is below 0.01
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 3

Callees 5

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