benilla-re systems structs docs

CGObject_C::FadeTo

function · objectlayer · primitive

Address
0x614f80 · 86 bytes, up to 0x614fd5
Signature
void __thiscall (CGObject_C *this, float alpha, uint32_t ms)
Meaning
Starts an alpha fade to a target over a number of milliseconds
Confidence
verified, proof one
Finding
objectlayer/objectbase#the-alpha-fade

Finding: The alpha fade in objectlayer: the base object

0x614f80(alpha, ms) starts a fade. Unless ms is nonzero and alpha already is the target +0xfc, it stamps the time at +0xec, ms at +0xf0, the current alpha +0xf4 into +0xf8 and alpha into +0xfc; with ms 0 it also sets +0xf4 to the target. Each frame the fade moves +0xf4 from +0xf8 to +0xfc by t³, t = age over ms between 0 and 1, and the model's alpha becomes +0x100 · +0xf4. At the end it sets +0xf4 to +0xfc and +0xf0 to 0.

The derivation is in the doc.

Callers 6

Callees 1

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