stk-code_catmod/data/shaders/multiply.frag
2014-01-19 19:31:00 +01:00

14 lines
239 B
GLSL

#version 130
uniform sampler2D tex1;
uniform sampler2D tex2;
out vec4 FragColor;
void main()
{
vec4 col1 = texture(tex1, gl_TexCoord[0].xy);
vec4 col2 = vec4(vec3(texture(tex2, gl_TexCoord[0].xy).x), 1.0);
FragColor = col1 * col2;
}