gl-react/Examples/Tests/layer.frag
2015-09-08 15:12:10 +02:00

12 lines
201 B
GLSL

precision highp float;
varying vec2 uv;
uniform sampler2D t1;
uniform sampler2D t2;
void main () {
vec4 c1 = texture2D(t1, uv);
vec4 c2 = texture2D(t2, uv);
gl_FragColor = mix(c1, c2, c2.a);
}