JustPaste.it

ThreeJS Renderers - TAE

The Renderer displays the scene onto an HTML Canvas Element. By default it uses WebGL. WebGL allows GPU-accelerated image processing and effects as the renderer creates the 2D image for the Canvas.

ThreeJS Renderers

WebGL Multiple Render Targets

A special render target 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.

 

Constructor

WebGLMultipleRenderTargets(width : Number, height : Number, count : Number, options : Object)

width - The width of the render target.

height - The height of the render target.

count - The number of render targets.

options - (an 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 more...

 

perspective_view_frustum.png