Simulates a bad TV via horizontal distortion and vertical roll. Uses Ashima WebGL Noise: https://github.com/ashima/webgl-noise
- time steadily increasing float passed in
- distortion amount of thick distortion
- distortion2 amount of fine grain distortion
- speed distortion vertical travel speed
- rollSpeed vertical roll speed
composer = new THREE.EffectComposer( renderer);
renderPass = new THREE.RenderPass( scene, camera );
badTVPass = new THREE.ShaderPass( THREE.BadTVShader );
composer.addPass( renderPass );
composer.addPass( badTVPass );
badTVPass.renderToScreen = true;
View example for full usage details.
MIT © Felix Turner