postprocessing
postprocessing copied to clipboard
Implement GlitchEffect
Description
Implement a GlitchEffect.
Tasks
- [ ] Create
GlitchEffect. - [ ] Create
glitchdemo. Also useChromaticAberrationEffectin that demo. - [ ] Add unit test.
Implementation Details
- Should be done after
ChromaticAberrationEffecthas been implemented. - The implementation from v6 can be copied mostly as-is.
- The effect should define an
offsetoutput uniform for chromatic aberration.- Also provide an
offsetgetter for this uniform's value. - The
ChromaticAberrationEffectwill automatically use theoffsetuniform as input if it runs after aGlitchEffect.
- Also provide an