2013-11-30 16:33:06 -05:00
|
|
|
uniform sampler2D tex1;
|
|
|
|
uniform sampler2D tex2;
|
|
|
|
|
2014-01-19 13:31:00 -05:00
|
|
|
out vec4 FragColor;
|
|
|
|
|
2013-11-30 16:33:06 -05:00
|
|
|
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
|
|
|
|
2014-01-19 13:31:00 -05:00
|
|
|
FragColor = col1 * col2;
|
2013-11-30 16:33:06 -05:00
|
|
|
}
|