Skip to content
🎉 Angular Three v4 is here! Read the announcement

NgtpGlitch

The glitch effect creates digital distortion artifacts, simulating video signal interference or data corruption.

import { NgtpEffectComposer, NgtpGlitch } from 'angular-three-postprocessing';
@Component({
template: `
<ngtp-effect-composer>
<ngtp-glitch [options]="{ delay: [1.5, 3.5], duration: [0.6, 1.0] }" />
</ngtp-effect-composer>
`,
imports: [NgtpEffectComposer, NgtpGlitch],
})
export class SceneGraph {}
PropertyTypeDefaultDescription
delay[number, number][1.5, 3.5]Min/max delay between glitches (seconds)
duration[number, number][0.6, 1.0]Min/max duration of glitches (seconds)
strength[number, number][0.3, 1.0]Min/max strength of the effect
activebooleantrueWhether the effect is active
rationumber0.85Ratio of glitch occurrence
<ngtp-effect-composer>
<ngtp-glitch [options]="{
delay: [0.5, 1.0],
duration: [0.2, 0.5],
strength: [0.5, 1.0],
ratio: 0.9
}" />
</ngtp-effect-composer>