1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
uniform sampler2D originTexture; uniform sampler2D destinationTexture; uniform float noiseSize; uniform vec2 resolution; varying vec2 vUv; void main(){ vec2 uv = gl_FragCoord.xy / resolution; vec4 oPos = texture2D( originTexture , uv ); vec4 pos = texture2D( destinationTexture , uv ); gl_FragColor = vec4( 1.); }
You can clone a snippet to your computer for local editing. Learn more.