MCPcopy Create free account
hub / github.com/carbonengine/trinity / DeriveFrustum

Method DeriveFrustum

trinity/TriFrustum.cpp:26–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void 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
38void TriFrustum::ExtractFrustum( const Matrix* proj )
39{ /**

Callers 15

SetupShadowSplitMethod · 0.45
GetFrustumMethod · 0.45
VisibilityQueryMethod · 0.45
ResolveVisibilityMethod · 0.45
RenderShadowsMethod · 0.45
CreatePickingFrustumFunction · 0.45
UpdateMethod · 0.45
UpdateImpostorsMethod · 0.45
RenderReflectionPassMethod · 0.45
RenderBackgroundPassMethod · 0.45
Render3DUIMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected