benilla-re systems structs docs

GetCameraInteriorFog

function · terrain · primitive

Address
0x69de20 · 917 bytes, up to 0x69e1b4
Signature
uint32_t __fastcall (void *record, void *instance, uint8_t flag, void *container)
Meaning
Fills the fog record of the map object holding the camera from its MFOG records, nearest weighing most
Confidence
verified, proof one
Finding
terrain/lights#camera-interior-fog
Test
terrain::light_distance_difftest

Finding: Camera interior fog in terrain: map lights

0x69de20(record, instance, byte, container) evaluates the fog of the map object holding the camera. With no claim 0xc7b748, no model or exactly one MFOG record (the count at model +0x190) it returns 0 and writes nothing. Otherwise byte is 1 when at least one group of the camera set 0xc7cd88 is flagged without 0x48, and with byte set the claim goes to instance and 0xc7cd80 to container. Either way the 0x30-byte record then starts as MFOG[0] (flags, position, radii +0x10 and +0x14, and the sub-records of end, start fraction and colour at +0x18 dry and +0x24 underwater) and the result is 1 (Fog record blend).

The derivation is in the doc.

Callers 1

Callees 9

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