benilla-re systems structs docs

InitFogRecords

function · lighting · orchestration

Address
0x6cf310 · 30 bytes, up to 0x6cf32d
Meaning
Fills two fog records of end, fraction and colour for the interior fog query
Confidence
verified, proof one
Finding
lighting/fog#interior-fog

Finding: Interior fog in lighting: fog and the world light

The camera crossfades into the fog of the map object group the active player stands in. When the world's fog query returns 1, the target is the group's record 1 in water or ocean, in magma with query flag 0x100 and in slime with 0x10, else record 0; magma and slime without the flag keep the scene fog. The target's end is min(record end, far clip), its start the record's fraction of it; in magma or slime the scene fog takes the target too. The weight +0x7c moves 0.25 per second toward 1 while the query holds, else toward 0. The drawn fog +0x80 to +0x88 is the scene fog moved toward the target by it.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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