Capítulo 253 de 859
Pass for creating a glitch effect.
const glitchPass = new GlitchPass();
composer.addPass( glitchPass );
Constructor
| Signature |
|---|
new GlitchPass( dt_size : number ) |
Properties
| Property | Description |
|---|---|
.goWild : boolean | Whether to noticeably increase the effect intensity or not. |
.material : ShaderMaterial | The pass material. |
.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 glitch pass. |