Used as flag to indicate if the object intersects with the frustum.
Used to access the planes array.
Holds all 6 planes of the frustum.
Constructs the frustum from a model-view-projection matrix.
mat4 mvp | a model-view-projection matrix |
Constructs the frustum from 6 planes.
Plane[6] planes | the 6 frustum planes in the order: left, right, bottom, top, near, far. |
Checks if the aabb intersects with the frustum. Returns OUTSIDE (= 0), INSIDE (= 1) or INTERSECT (= 2).
Returns true if the aabb intersects with the frustum or is inside it.