benilla-re systems structs docs

s_portalWorldMatrix

global · terrain

Address
0xcbe468 · 64 bytes, up to 0xcbe4a7
Type
float[16]
Meaning
Holds the world matrix slot 8 read for the portal flood
Confidence
verified, proof one
Finding
terrain/portals#interior-seed

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.