benilla-re systems structs docs

SimpleModelSetAlpha

function · ui · primitive

Address
0x76d120 · 58 bytes, up to 0x76d159
Signature
void __thiscall (void *this, uint32_t alpha)
Meaning
Sets the frame's alpha, then passes the frame's own alpha over 255 to the model
Confidence
verified, proof one
Finding
ui/modelanim#frame-alpha
Test
ui::glue_76cd30_byte_to_unit

Finding: Frame alpha in ui: Model frames, animation, light and fog

A model's opacity follows its frame's own alpha, not the alpha inherited from its parents. The frame pushes alpha/255 of the frame's byte at +0xc8 to the model when the model is set and on every SetAlpha; all five model-frame vtables override slot 10 with the same function.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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