Lysa  0.0
Lysa 3D Engine
Frustum Struct Reference

Detailed Description

Represents a view frustum used for visibility testing (frustum culling).

A frustum is defined by six clipping planes extracted from a combined projection-view matrix (sometimes called clip-from-world). This utility provides a compact plane representation and helpers to extract planes from a matrix for culling meshes, lights, or other bounding volumes.

Classes

struct  Plane
 

Static Public Member Functions

static void extractPlanes (Plane planes[6], const float4x4 &matrix)
 

Member Function Documentation

static void extractPlanes ( Plane  planes[6],
const float4x4 &  matrix 
)
static

Extracts the six clipping planes of a frustum from a combined projection-view matrix.

The resulting planes are written to the provided array. Unless noted otherwise, the order follows the engine convention: left, right, bottom, top, near, far.

Parameters
planesOutput array that will receive the six planes. Each plane is expressed as (nx, ny, nz, d).
matrixProjection-View matrix (clip-from-world).