Constructor
new CubeCamera( near : number, far : number, renderTarget : WebGLCubeRenderTarget )
Constructs a new cube camera.
| near |
The camera's near plane. |
| far |
The camera's far plane. |
| renderTarget |
The cube render target. |
Properties
.activeMipmapLevel : number
The current active mipmap level
Default is 0.
.coordinateSystem : WebGLCoordinateSystem | WebGPUCoordinateSystem
The current active coordinate system.
Default is null.
.renderTarget : WebGLCubeRenderTarget
A reference to the cube render target.
Methods
.update( renderer : Renderer | WebGLRenderer, scene : Scene )
Calling this method will render the given scene with the given renderer into the cube render target of the camera.
| renderer |
The renderer. |
| scene |
The scene to render. |
.updateCoordinateSystem()
Must be called when the coordinate system of the cube camera is changed.