Capítulo 253 de 859

Chapter 253: GlitchPass

Core Idea

Pass for creating a glitch effect.

Key Concepts

  • goWild : boolean: Whether to noticeably increase the effect intensity or not.
  • material : ShaderMaterial: The pass material.
  • uniforms : Object: The pass uniforms.

Code Examples

const glitchPass = new GlitchPass();
composer.addPass( glitchPass );
  • What it demonstrates: Typical usage of GlitchPass.

Reference Tables

Constructor

Signature
new GlitchPass( dt_size : number )

Properties

PropertyDescription
.goWild : booleanWhether to noticeably increase the effect intensity or not.
.material : ShaderMaterialThe pass material.
.uniforms : ObjectThe pass uniforms.

Methods

MethodDescription
.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.

Key Takeaways

  1. GlitchPass extends: Pass
  2. Most relevant properties: goWild, material, uniforms.
  3. Key methods: dispose, render.

Connects To