TestBoxPlanes
function · terrain · primitive
- Address
0x686940· 116 bytes, up to0x6869b3- Signature
uint32_t __thiscall (float *this, const float *box)- Meaning
- Returns 0 when a box lies outside one of six planes by more than 0.019444443, else 3
- Confidence
- verified, proof one
- Finding
- terrain/cull#frustum-box-test
- Test
terrain::aabb_frustum_pvertex
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.
Callers 2
- IsBoxCulled terrain
- GatherMapObjectVolumeFacets terrain
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.