This class is mainly intended for use internally by DirectionalLightShadowCSM for calculating subfrustums.
Creates a new CSMFrustum.
Contains 8 points forming the frustum.
near — array of points forming the near plane.
far — array of points forming the far plane.
matrix — view camera's projection matrix.
maxFar — frustum far plane distance.
Sets frustum points from projection matrix.
breaks — array of split intervals.
target — array of subfrustums, should be target.length <= breaks.length
.
fitToScene — if true
, uses fit to scene
, else fit to cascade
method.
Splits this frustum into subfrustums.
matrix — matrix applied to each frustum point.
target — frustum to which the results will be written.
Multiplies each frustum point by a matrix and write the results to the target.
For more info on how to obtain the source code of this module see this page.