ScaleSelfLitMaterials
function · terrain · primitive
- Address
0x6b4090· 199 bytes, up to0x6b4156- Signature
void __thiscall (void *this)- Meaning
- Scales the colours of a model's self-lit materials by the night fraction
- Confidence
- verified, proof one
- Finding
- terrain/portals#map-object-frame
- Test
terrain::color_fade_modulate_difftest
Finding: Map object frame in terrain: map object visibility
0x6b3890 runs once a frame before anything is drawn. It points the group drawers at the exterior
batch draw and the interior batch draw (a world flag swaps in a debug draw), zeroes the portal
window count, the weather visibility byte and the sky box state, and ages every cached map object
model: the night colours of its materials, the buffer blocks of its groups, the keep-alive timers of
its groups and of the model, freeing what has expired.
The derivation is in the doc.
Callers 1
- BeginMapObjectFrame terrain
Callees 1
- GetLightState lighting
Calls and jumps by a bare address, from tables/calls.tsv.