Render Target
A buffer to save the intermediate computations. A buffer when RenderTarget is set, it captures the output of a fragment shader. This feature is useful in creating an effect that involves one or more shaders processing. For example, applying postprocessing to a rendered image before displaying it on the screen.
Syntax:
webglRenderer.RenderTarget({
texture: Texture
});
Example:
var Texture = webglRenderer.TextureObject({
width: webglRenderer.width * webglRenderer.pixelRatio,
height: webglRenderer.height * webglRenderer.pixelRatio,
border: 0,
format: 'RGBA',
type: 'UNSIGNED_BYTE',
warpS: 'CLAMP_TO_EDGE',
warpT: 'CLAMP_TO_EDGE',
magFilter: 'LINEAR',
minFilter: 'LINEAR',
mipMap: false
});
var renderTarget = webglRenderer.RenderTarget({
texture: Texture
})