FrustumBounds
function · gxumath · unreached
- Address
0x5c4c70· 246 bytes, up to0x5c4d65- Signature
void __fastcall (const NTempest::C44Matrix *view, const NTempest::C44Matrix *proj, float *min, float *max)- Meaning
- Writes the minimum and maximum of the eight frustum corners of a view and a projection
- Confidence
- verified, proof one
- Finding
- gxumath#frustum-planes-and-box
Finding: Frustum planes and box in gxumath
0x5c4930 (ecx a matrix, edx six planes of four floats) writes C0 − C3, −C0 − C3, C1 − C3, −C1 − C3, C2 − C3, −C2 − C3 for the matrix's columns, each a float, then scales each plane's four
floats by RN24(1/√(a² + b² + c²)). 0x5c54f0 (ecx a point, edx the planes, a margin on
the stack) returns 1 when py·ply + px·plx + pz·plz + plw − margin is at most 0 for all six, NaN
passing. 0x5c4c70 (ecx view, edx projection; minimum and maximum outputs on the stack, ret 8)
writes the componentwise bounds of the eight corners 0x5c43b0 gives.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 1
- BuildFrustumCorners gxumath
Calls and jumps by a bare address, from tables/calls.tsv.