textures2.frag 292 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#version 330

uniform sampler2D texture0;
uniform sampler2D texture1;

in vec2 frag_texcoord0;
in vec2 frag_texcoord1;

layout(location = 0) out vec4 out_color;

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