Capítulo 347 de 859

Chapter 347: FrustumArray

Core Idea

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.

Key Concepts

  • coordinateSystem : WebGLCoordinateSystem | WebGPUCoordinateSystem: The coordinate system to use.

Reference Tables

Constructor

Signature
new FrustumArray()

Properties

PropertyDescription
`.coordinateSystem : WebGLCoordinateSystemWebGPUCoordinateSystem`

Methods

MethodDescription
.clone() : FrustumArrayReturns a new frustum array with copied values from this instance.
.containsPoint( point : Vector3 ) : booleanReturns true if the given point lies within any cached frustum.
.copy( frustumArray : FrustumArray ) : FrustumArrayCopies the values of the given frustum array to this instance.
.intersectsBox( box : Box3 ) : booleanReturns true if the given bounding box is intersecting any cached frustum.
.intersectsObject( object : Object3D ) : booleanReturns true if the 3D object's bounding sphere is intersecting any cached frustum.
.intersectsSphere( sphere : Sphere ) : booleanReturns true if the given bounding sphere is intersecting any cached frustum.
.intersectsSprite( sprite : Sprite ) : booleanReturns true if the given sprite is intersecting any cached frustum.
.setFromArrayCamera( cameraArray : ArrayCamera ) : FrustumArrayComputes and caches a frustum for each camera of the given array camera.

Key Takeaways

  1. Most relevant properties: coordinateSystem.
  2. Key methods: clone, containsPoint, copy, intersectsBox.

Connects To