textures2.frag 265 Bytes
Newer Older
1 2 3
uniform sampler2D texture0;
uniform sampler2D texture1;

Jonathan Carter's avatar
Jonathan Carter committed
4 5
varying highp vec2 frag_texcoord0;
varying highp vec2 frag_texcoord1;
6 7 8 9 10

void main()
{
    gl_FragColor = texture2D(texture0, frag_texcoord0) + texture2D(texture1, frag_texcoord1) - vec4(0.5, 0.5, 0.5, 0.5);
}