Capítulo 271 de 859
A pass for applying SMAA. Unlike FXAAPass, SMAAPass operates in linear-srgb so this pass must be executed before OutputPass.
const smaaPass = new SMAAPass();
composer.addPass( smaaPass );
Constructor
| Signature |
|---|
new SMAAPass() |
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 SMAA pass. |
.setSize( width : number, height : number ) | Sets the size of the pass. |