The width of the render target.
The height of the render target.
The number of render targets.
Creates eventDispatcher object. It needs to be call with '.call' to add the functionality to an object.
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.
Adds a listener to an event type.
The type of event to listen to.
The that gets called when the event is fired.
Fire an event type.
Checks if listener is added to an event type.
The type of event to listen to.
The that gets called when the event is fired.
Removes a listener from an event type.
The type of the listener that gets removed.
The listener that gets removed.
Generated using TypeDoc
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.
Examples
webgl2 / multiple / rendertargets