s_portalStates
global · terrain
- Address
0xcb005c· 57344 bytes, up to0xcbe05b- Type
uint8_t[57344]- Meaning
- Holds the 2048 portal states of 0x1c bytes: flags, screen rectangle and the two pass numbers
- Confidence
- verified, proof one
- Finding
- terrain/portals#portal-walk
Finding: Portal walk in terrain: map object visibility
0x6b41c0(group, from, rectangle, depth, interior group) visits a group and recurses through its
portals. It stops at depth above the cap 0xcb004c (10), for an unloaded group and for flag
0x10000. A flag 0x1000 group, when none was seen, stores the depth parity. It sets the weather
byte for flags 0x148 and the sky box for 0x40000 with a set byte at +0x12c, calls the callback,
and for each portal reference not leading back to from projects the portal once a pass; a portal
the eye is behind or whose screen rectangle misses the rectangle or is narrower than 0.001 is
skipped, the rest recurse with the rectangle clipped to the window.
The derivation is in the doc.