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
Param | Type | Description |
---|---|---|
frustum_planes | Array.<number> | Float32Array | tuples 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] |
m4 | Array.<number> | assumed to be view-projection matrix |