CM2Model::SetDiffuseColor
function · models · orchestration
- Address
0x710cf0· 32 bytes, up to0x710d0f- Signature
void __thiscall (CM2Model *this, const float *rgb)- Meaning
- Copies three words into an instance's diffuse colour multiplier
- Confidence
- verified, proof one
- Finding
- models/model#instance-setters
Finding: Instance setters in models: the instance
SetBaseTransform(m) copies 16 words into the base matrix +0xbc, SetAlpha(a) stores +0x180,
SetDiffuseColor(c) copies three words into +0x184 and SetEmissiveColor(c) into +0x190, and
SetLightingCallback(fn, arg) stores +0x3bc and +0x3c0. None waits for the shared model,
defers, clamps or reaches a child: each moves words, so any float, a NaN included, lands as given.
The animate pass reads the colours and the alpha (animation#instance-colours) and the lighting
build calls the callback (lights#instance-lighting).
The derivation is in the doc.
Callers 5
- ApplyCharSelectGhostKit glue
- DetachAllItemModels charactermodel
- CGUnit_C::Mount objectlayer
- CGUnit_C::UpdateTint objectlayer
- CParticleEmitter2::DrawModelParticle models
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.