benilla-re systems structs docs

s_portalViewPlane

global · terrain

Address
0xca7ef0 · 16 bytes, up to 0xca7eff
Type
float[4]
Meaning
Holds the plane through the camera across the view axis: unit normal then offset
Confidence
verified, proof one
Finding
terrain/portals#camera-inside-a-map-object

Finding: Camera inside a map object in terrain: map object visibility

0x685a90 prepares the flood for the map object that holds the camera. It moves the camera position and the camera target into the model's space with the instance matrix +0xd4, stores the unit direction between them and the offset of the plane through the camera (the plane of the view axis), loads matrix slot 8 with the translation by minus the camera times the instance matrix +0x94, registers the group callback 0x685d70, and runs 0x6b3b20 with the model, the instance matrix and the groups the camera is in.

The derivation is in the doc.