1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
uniform sampler2D originTexture; uniform sampler2D destinationTexture; uniform float dT; 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 = pos; }
You can clone a snippet to your computer for local editing. Learn more.