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: WebGLMultipleRenderTargets can only be used with a WebGL 2 rendering context.
webgl2 / multiple / rendertargets
width - The width of the render target. Default is
height - The height of the render target. Default is
count - The number of render targets. Default is
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. For a list of valid options, see WebGLRenderTarget.
Read-only flag to check if a given object is of type WebGLMultipleRenderTargets.
The texture property is overwritten in WebGLMultipleRenderTargets and replaced with an array. This array holds the texture references of the respective render targets.
WebGLRenderTarget properties are available on this class.
WebGLRenderTarget methods are available on this class.
For more info on how to obtain the source code of this module see this page.