benilla-re systems structs docs

SeedExteriorVisibility

function · terrain · host

Address
0x6b3dd0 · 439 bytes, up to 0x6b3f86
Signature
void __thiscall (void *this, uint32_t arg2, uint32_t arg3)
Meaning
Seeds the flood of a map object seen from outside through a screen rectangle
Confidence
verified, proof one
Finding
terrain/portals#exterior-seed
Test
terrain::camera_outside_bias_difftest

Finding: Exterior seed in terrain: map object visibility

0x6b3dd0 seeds the flood from outside, for a map object seen through a rectangle of the screen in [0, 1] (the object's instance matrix and the rectangle are the arguments). It resets the pass state like the interior seed with the inside flag 0, maps the rectangle to [−1, 1], and builds the volume for it. For each group with flag 0x10000 whose box is not culled it runs the group callback; for each other group with flag 0x8 whose box is not culled it walks the portals from that group at depth 0.

The derivation is in the doc.

Callers 1

Callees 10

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