benilla-re systems structs docs

s_occluderFarDepth

global · terrain

Address
0xc7d278 · 4 bytes, up to 0xc7d27b
Type
float
Meaning
Holds the view depth below which a chunk may occlude
Confidence
verified, proof one
Finding
terrain/cull#chunk-visibility

Finding: Chunk visibility in terrain: cull

0x683bf0 walks the frame's candidate chunks: a chunk whose holes word is 0xffff, whose box fails the frustum, or which the horizon hides, is dropped. With world flag 0x20, a visible chunk without holes becomes an occluder candidate; the candidates whose view depth lies in [0xc7b66c, 0xc7d278) add their rows to the horizon, and all join the draw list. Without the flag every visible chunk joins the draw list directly.

The derivation is in the doc.