s_frustumEpsilon
global · terrain
- Address
0x8101b4· 4 bytes, up to0x8101b7- Type
float- Meaning
- Holds -0.019444443 (0xbc9f49f4), the margin a frustum plane allows
- Confidence
- verified, proof one
- Finding
- terrain/cull#frustum-box-test
Finding: Frustum box test in terrain: cull
0x686940(box), on six planes, returns 0 when the box is outside a plane and 3 otherwise. For
each plane it takes the box corner farthest along the normal, max on an axis whose normal
component has a clear sign bit and min otherwise, and rejects when (n.x·x + n.z·z) + n.y·y + d
is below −0.019444443.
The derivation is in the doc.