Skip to main content

frustum_from_projection_matrix_array

frustum_from_projection_matrix_array(frustum_planes, m4)

Set frustum from projection matrix NOTE: uses Gribb/Hartmann method

Kind: global function
See: "Fast Extraction of Viewing Frustum Planes from the WorldView-Projection Matrix", 2001 by Gribb & Hartmann

ParamTypeDescription
frustum_planesArray.<number> | Float32Arraytuples of 4, where each tuple is a plane normal (x,y,z) followed by a planar offset constant [normal_x, normal_y, normal_z, constant]
m4Array.<number>assumed to be view-projection matrix