benilla-re systems structs docs

SeedInteriorVisibility

function · terrain · host

Address
0x6b3b20 · 677 bytes, up to 0x6b3dc4
Signature
void __thiscall (void *this, uint32_t arg2, uint32_t arg3)
Meaning
Floods the groups visible from the camera's groups through the portals and records the exterior windows
Confidence
verified, proof one
Finding
terrain/portals#interior-seed
Test
terrain::camera_inside_bias_difftest

Finding: Interior seed in terrain: map object visibility

0x6b3b20 floods from the groups the camera is in. It advances the pass number 0xca8014 and sets the inside flag 0xcde5ac, the group fog flag 0xca7f00 and clears the window count. The object-to-clip matrix 0xcbe2d8 is slot 8 times the device matrix. It walks from each start group over the whole screen, (−1, −1, 1, 1), at depth 0. Then each recorded window is walked again from every exterior group inside it, and last the callback runs for each group with flag 0x10000 whose box the current volume shows.

The derivation is in the doc.

Callers 1

Callees 11

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