2014-01-04 19:08:00 -05:00
|
|
|
#version 130
|
2013-11-30 16:33:06 -05:00
|
|
|
uniform sampler2D tex1;
|
|
|
|
uniform sampler2D tex2;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2014-01-19 12:53:35 -05:00
|
|
|
vec4 col1 = texture(tex1, gl_TexCoord[0].xy);
|
|
|
|
vec4 col2 = vec4(vec3(texture(tex2, gl_TexCoord[0].xy).x), 1.0);
|
2013-11-30 16:33:06 -05:00
|
|
|
|
|
|
|
gl_FragColor = col1 * col2;
|
|
|
|
}
|