Constructor
new WebGLCubeRenderTarget( size : number, options : RenderTarget~Options )
Constructs a new cube render target.
| size |
The size of the render target. Default is |
| options |
The configuration object. |
Properties
.isWebGLCubeRenderTarget : boolean (readonly)
This flag can be used for type testing.
Default is true.
.texture : DataArrayTexture
Overwritten with a different texture type.
- Overrides: WebGLRenderTarget#texture
Methods
.clear( renderer : WebGLRenderer, color : boolean, depth : boolean, stencil : boolean )
Clears this cube render target.
| renderer |
The renderer. |
| color |
Whether the color buffer should be cleared or not. Default is |
| depth |
Whether the depth buffer should be cleared or not. Default is |
| stencil |
Whether the stencil buffer should be cleared or not. Default is |
.fromEquirectangularTexture( renderer : WebGLRenderer, texture : Texture ) : WebGLCubeRenderTarget
Converts the given equirectangular texture to a cube map.
| renderer |
The renderer. |
| texture |
The equirectangular texture. |
- Returns: A reference to this cube render target.