[page:WebGLRenderTarget] →

[name]

A special render target that can be used to utilize multi-sampled renderbuffers. Heads up: [name] can only be used with a WebGL 2 rendering context.

Examples

[example:webgl2_multisampled_renderbuffers webgl2 / multisampled / renderbuffers ]

Constructor

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

[page:Float width] - The width of the render target.
[page:Float height] - The height of the render target.
[page:Object options] - (optional) object that holds texture parameters for an auto-generated target texture and depthBuffer/stencilBuffer booleans.

Properties

[property:number samples]

Specifies the number of samples to be used for the renderbuffer storage. However, the maximum supported size for multisampling is platform dependent and defined via *gl.MAX_SAMPLES*.

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

Methods

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

Source

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