Capítulo 269 de 859
A pass that saves the contents of the current read buffer in a render target.
const savePass = new SavePass( customRenderTarget );
composer.addPass( savePass );
Constructor
| Signature |
|---|
new SavePass( renderTarget : WebGLRenderTarget ) |
Properties
| Property | Description |
|---|---|
.material : ShaderMaterial | The pass material. |
.needsSwap : boolean | Overwritten to disable the swap. |
.renderTarget : WebGLRenderTarget | The render target which is used to save the read buffer. |
.uniforms : Object | The pass uniforms. |
Methods
| Method | Description |
|---|---|
.dispose() | Frees the GPU-related resources allocated by this instance. Call this method whenever the pass is no longer used in your app. |
.render( renderer : WebGLRenderer, writeBuffer : WebGLRenderTarget, readBuffer : WebGLRenderTarget, deltaTime : number, maskActive : boolean ) | Performs the save pass. |
.setSize( width : number, height : number ) | Sets the size of the pass. |