[page:WebGLRenderTarget] →

[name]

This type of render target represents an array of textures.

Examples

[example:webgl_rendertarget_texture2darray WebGL / render target / array]

Constructor

[name]( [param:Number width], [param:Number height], [param:Number depth], [param:Object options] )

[page:Number width] - the width of the render target, in pixels. Default is `1`.
[page:Number height] - the height of the render target, in pixels. Default is `1`.
[page:Number depth] - the depth/layer count of the render target. Default is `1`.
[page:Object options] - optional object that holds texture parameters for an auto-generated target texture and depthBuffer/stencilBuffer booleans. See [page:WebGLRenderTarget] for details.

Creates a new [name].

Properties

See [page:WebGLRenderTarget] for inherited properties.

[property:number depth]

The depth of the render target.

[property:DataArrayTexture texture]

The texture property is overwritten with an instance of [page:DataArrayTexture].

Methods

See [page:WebGLRenderTarget] for inherited methods.

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]