Skip to content

Instantly share code, notes, and snippets.

@gre
Last active January 4, 2016 07:19
Show Gist options
  • Save gre/8587376 to your computer and use it in GitHub Desktop.
Save gre/8587376 to your computer and use it in GitHub Desktop.
GLSL Transitions Editor template - GPL 3 license
#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D from, to;
uniform float progress;
uniform vec2 resolution;
void main() {
vec2 p = gl_FragCoord.xy / resolution.xy;
gl_FragColor = mix(texture2D(from, p), texture2D(to, p), progress);
}
GPL 3 License [TODO]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment