ApplyMapObjectFog
function · terrain · host
- Address
0x6c31e0· 300 bytes, up to0x6c330b- Signature
void __thiscall (void *this, void *out)- Meaning
- Sets a lighting record's fog from the interior block for an interior-lit entity with the claim, else the scene block
- Confidence
- verified, proof one
- Finding
- terrain/lights#map-object-fog
- Test
terrain::fog_select_outdoor_difftest,terrain::fog_select_indoor_difftest,terrain::fog_select_fallthrough_difftest
Finding: Map object fog in terrain: map lights
0x6c31e0 is the entity's and the def's fog slot. For an interior-lit entity (+0xc bit 2) in a
group def that holds the interior fog claim (+0x98), the fog colour is the light state's
block 2 (bytes +0x82, +0x81, +0x80, range +0x84, +0x88); every other entity gets block 1
(+0x72, +0x71, +0x70, +0x74, +0x78). It sets the record's fog with 0x71c110.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 2
- GetLightState lighting
- M2LightingSetFog models
Calls and jumps by a bare address, from tables/calls.tsv.