[page:WebGLRenderTarget] →


A special render target that enables a fragment shader to write to several textures. This approach is useful for advanced rendering techniques like post-processing or deferred rendering. Heads up: [name] can only be used with a WebGL 2 rendering context.


[example:webgl2_multiple_rendertargets webgl2 / multiple / rendertargets ]


[name]([param:Number width], [param:Number height], [param:Number count])

[page:Number width] - The width of the render target.
[page:Number height] - The height of the render target.
[page:Number count] - The number of render targets.


[property:Array texture]

The texture property is overwritten in [name] and replaced with an array. This array holds the [page:WebGLRenderTarget.texture texture] references of the respective render targets.

[page:WebGLRenderTarget WebGLRenderTarget] properties are available on this class.


[page:WebGLRenderTarget WebGLRenderTarget] methods are available on this class.


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