Skip to content

Instantly share code, notes, and snippets.

View neithanmo's full-sized avatar

Natanael Mojica neithanmo

View GitHub Profile
#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);