ViewFrustum
Public / Methods
ExtractFromMatrix
Extracts a view frustum plane from the unit cube in homogeneous clip space that is defined by the given matrix.
The following inequalities are used to extract the view frustum planes from the given matrix:
-w < x < w -w < y < w C < z < w
where x
, y
, z
and w
are the coordinates of a transformed vertex in homogeneous clip space (as produced by the given matrix). The value C
affects the near clipping plane. Its value depends on the used graphics API and can be 0
(e.g. Direct3D) or -w
(e.g. OpenGL).
Extracts the view frustum planes from the unit cube in homogeneous clip space that is defined by the given matrix.
The following inequalities are used to extract the view frustum planes from the given matrix:
-w < x < w -w < y < w C < z < w
where x
, y
, z
and w
are the coordinates of a transformed vertex in homogeneous clip space (as produced by the given matrix). The value C
affects the near clipping plane. Its value depends on the used graphics API and can be 0
(e.g. Direct3D) or -w
(e.g. OpenGL).
Calling this method will update all planes of this frustum.
InsideMask
Computes an inside mask (see FrustumCulling.InsideMask) for the given set of active view frustum planes.