benilla-re systems structs docs

s_bandPlane

global · terrain

Address
0xc7cfb8 · 16 bytes, up to 0xc7cfc7
Type
float[4]
Meaning
Holds the plane of the camera's horizontal facing whose distance picks a depth band
Confidence
verified, proof one
Finding
terrain/cull#depth-buckets

Finding: Depth buckets in terrain: cull

The scene files what it draws into 32 depth bands of 33.33 yards, nearest first. The band is round-to-nearest of (depth · 0.03 − 0.5), the depth the signed distance along the camera's horizontal facing, less the radius for a sphere. A negative value is band 0, and a band of 32 or more is not filed at all. Each band holds a list per kind, and a node leaves its old list before it joins the tail of the new one.

The derivation is in the doc.