benilla-re systems structs docs

RemoveHeapEntries

function · terrain · orchestration

Address
0x69eb10 · 81 bytes, up to 0x69eb60
Signature
uint8_t __thiscall (void *this, uint32_t index, uint32_t count)
Meaning
Removes a run of 8-byte entries from a growable array by moving the tail down
Confidence
verified, proof one
Finding
terrain/lights#fog-record-blend

Finding: Fog record blend in terrain: map lights

The candidates are the four fog indices of the first group of the camera set only. An index counts when it is nonzero, its MFOG record lies nearer to the camera, in the model's space, than the record's large radius (+0x14, strictly) and the record's flag 1 is clear; the distance and index enter a max-heap, which pops the farthest first. Each pop moves both sub-records of the output toward the popped record's, by lerp for end and start fraction and by the byte blend for colour, with weight 1 inside the small radius (+0x10) and falling to 0 at the large one. The nearest, popped last, also copies its flags. With no candidate the output stays MFOG[0].

The derivation is in the doc.

Callers 1

Callees 1

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