SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
Matrix to 6 frustum plane conversion functions. More...
#include <SLFrustum.h>
Static Public Member Functions | |
static void | viewToFrustumPlanes (SLPlane *planes, const SLMat4f &projectionMat, const SLMat4f &viewMat) |
static void | viewToFrustumPlanes (SLPlane *planes, const SLMat4f &A) |
static void | getPointsInViewSpace (SLVec3f *points, float fovV, float ratio, float clipNear, float clipFar) |
Returns frustum points in view space. More... | |
Matrix to 6 frustum plane conversion functions.
Definition at line 15 of file SLFrustum.h.
|
static |
Calculates the coefficients of the 6 frustum planes from the passed matrix A. See the paper from Gribb and Hartmann: https://www.gamedevs.org/uploads/fast-extraction-viewing-frustum-planes-from-world-view-projection-matrix.pdf
planes | Pointer to an array of 6 SLPlanes (L R T B N F) |
A | The projection matrix |
Definition at line 42 of file SLFrustum.cpp.
|
static |
Calculates the coefficients of the 6 frustum planes from the passed projection and view matrices. See the paper from Gribb and Hartmann: https://www.gamedevs.org/uploads/fast-extraction-viewing-frustum-planes-from-world-view-projection-matrix.pdf
planes | Pointer to an array of 6 SLPlanes (L R T B N F) |
projectionMat | 4x4 projection matrix |
viewMat | 4x4 view matrix |
Definition at line 24 of file SLFrustum.cpp.