benilla-re systems structs docs

CGObject_C::SetAlpha

function · objectlayer · primitive

Address
0x6151e0 · 16 bytes, up to 0x6151ef
Signature
void __thiscall (CGObject_C *this, float alpha)
Meaning
Stores the master alpha at +0x100
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 1

Callees 0

None by a direct call or jump.

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