Skip to main content

WebGLRenderTarget

WebGLCubeRenderTarget

Used by the CubeCamera as its WebGLRenderTarget.

Examples

See CubeCamera for examples.

Constructor

WebGLCubeRenderTarget

function WebGLCubeRenderTarget( size: Number, options: Object ): void;  

size - the size, in pixels. Default is 1.
options - (optional) object that holds texture parameters for an auto- generated target texture and depthBuffer/stencilBuffer booleans. For an explanation of the texture parameters see Texture. The following are valid options:

wrapS - default is ClampToEdgeWrapping.
wrapT - default is ClampToEdgeWrapping.
magFilter - default is .LinearFilter.
minFilter - default is LinearFilter.
generateMipmaps - default is false.
format - default is RGBAFormat.
type - default is UnsignedByteType.
anisotropy - default is 1. See Texture.anisotropy
colorSpace - default is NoColorSpace.
depthBuffer - default is true.
stencilBuffer - default is false.

Creates a new WebGLCubeRenderTarget

Properties

See WebGLRenderTarget for inherited

properties

Methods

See WebGLRenderTarget for inherited

methods

fromEquirectangularTexture

function fromEquirectangularTexture( renderer: WebGLRenderer, texture: Texture
): this;

renderer — the renderer.
texture — the equirectangular texture.

Use this method if you want to convert an equirectangular panorama to the cubemap format.

clear

function clear( renderer: WebGLRenderer, color: Boolean, depth: Boolean,
stencil: Boolean ): undefined;

Call this to clear the renderTarget's color, depth, and/or stencil buffers. The color buffer is set to the renderer's current clear color. Arguments default to true.

Source

src/renderers/WebGLCubeRenderTarget.js