Capítulo 347 de 859
FrustumArray is used to determine if an object is visible in at least one camera from an array of cameras. This is particularly useful for multi-view renderers.
Constructor
| Signature |
|---|
new FrustumArray() |
Properties
| Property | Description |
|---|---|
| `.coordinateSystem : WebGLCoordinateSystem | WebGPUCoordinateSystem` |
Methods
| Method | Description |
|---|---|
.clone() : FrustumArray | Returns a new frustum array with copied values from this instance. |
.containsPoint( point : Vector3 ) : boolean | Returns true if the given point lies within any cached frustum. |
.copy( frustumArray : FrustumArray ) : FrustumArray | Copies the values of the given frustum array to this instance. |
.intersectsBox( box : Box3 ) : boolean | Returns true if the given bounding box is intersecting any cached frustum. |
.intersectsObject( object : Object3D ) : boolean | Returns true if the 3D object's bounding sphere is intersecting any cached frustum. |
.intersectsSphere( sphere : Sphere ) : boolean | Returns true if the given bounding sphere is intersecting any cached frustum. |
.intersectsSprite( sprite : Sprite ) : boolean | Returns true if the given sprite is intersecting any cached frustum. |
.setFromArrayCamera( cameraArray : ArrayCamera ) : FrustumArray | Computes and caches a frustum for each camera of the given array camera. |