Capítulo 245 de 859
This class can be used to force a clear operation for the current read or default framebuffer (when rendering to screen).
const clearPass = new ClearPass();
composer.addPass( clearPass );
Constructor
| Signature |
|---|
| `new ClearPass( clearColor : number |
Properties
| Property | Description |
|---|---|
.clearAlpha : number | The clear alpha. |
| `.clearColor : number | Color |
.needsSwap : boolean | Overwritten to disable the swap. |
Methods
| Method | Description |
|---|---|
.render( renderer : WebGLRenderer, writeBuffer : WebGLRenderTarget, readBuffer : WebGLRenderTarget, deltaTime : number, maskActive : boolean ) | Performs the clear operation. This affects the current read or the default framebuffer. |