Skip to content

frustumFromMatrix

frustumFromMatrix(viewProjection): Frustum

Defined in: src/modules/camera-3d/frustum.ts:21

Extract the frustum from a view-projection matrix (Gribb–Hartmann): each plane is the matrix’s fourth row plus or minus one of the others. Works for any WebGL-convention projection, perspective or orthographic.

Mat4

Frustum