CSMFrustum

This class is mainly intended for use internally by DirectionalLightShadowCSM for calculating subfrustums.

Constructor

CSMFrustum()

Creates a new CSMFrustum.

Properties

.vertices : Object

Contains 8 points forming the frustum.

Methods

.setFromProjectionMatrix(matrix : Matrix4, maxFar : Float) → this

Sets frustum points from projection matrix.

.split(breaks : Array, target : Array, fitToScene : Boolean) → this

Splits this frustum into subfrustums.

.toSpace(matrix : Matrix4, target : this) → this

Multiplies each frustum point by a matrix and write the results to the target.

Source

For more info on how to obtain the source code of this module see this page.