benilla-re systems structs docs

MaxPortalDistance

function · terrain · primitive

Address
0x6b4680 · 103 bytes, up to 0x6b46e6
Signature
float __thiscall (void *this, uint32_t arg2)
Meaning
Returns the largest distance of a portal's vertices along the view axis from the camera plane
Confidence
verified, proof one
Finding
terrain/portals#portal-reach
Test
terrain::portal_plane_maxdist_difftest

Finding: Portal reach in terrain: map object visibility

0x6b4680(portal) returns the largest distance of the portal's vertices to the plane through the camera, dot(v, direction) + offset, never below 0. It is the fifth word of a window and sets the horizon feed of the scene walk through the window.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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