| 24 | } |
| 25 | |
| 26 | void TriFrustum::DeriveFrustum( const Matrix* view, const Vector3* campos, const Matrix* projection, const TriViewport& viewport ) |
| 27 | { |
| 28 | CacheTransformationData( view, campos, projection, viewport ); |
| 29 | |
| 30 | // It does not make any sense of doing frustum culling in any other space then world space. |
| 31 | // Otherwise we would have to move all the geometry to camera space before we would do any culling. |
| 32 | Matrix worldMat = *view * *projection; |
| 33 | |
| 34 | // Now do the actual extraction |
| 35 | ExtractFrustum( &worldMat ); |
| 36 | } |
| 37 | |
| 38 | void TriFrustum::ExtractFrustum( const Matrix* proj ) |
| 39 | { /** |
no outgoing calls
no test coverage detected