Extracts the planes for a WebGL viewing frustum
npm install extract-frustum-planesextract-frustum-planes
======================
Returns a list of frustum planes from a given WebGL matrix (assuming the matrix is stored in the same format as used by gl-matrix).
npm install extract-frustum-planes
``javascript
var getPlanes = require("extract-frustum-planes")
var glm = require("gl-matrix")
var m = glm.mat4.perspective()
`
* worldToClip is the concatenated model-view-projection matrix in the same format as expected by WebGL (ie compatible with gl-matrix)zNear
* is the near clip plane distance as set by gl.depthRange (default 0.0)zFar
* is the far clip plane distance as set by gl.depthRange
Returns An array of 6 planes encoding the view frustum stored in the order:
* leftright
* top
* bottom
* near
* far`
*