root / trunk / tbeta / Windows / apps / addonsExamples / VS2008 / bin / data / shaders / subtract.fs @ 155

View | Annotate | Download (203 Bytes)

1
uniform sampler2D tex;
2
uniform sampler2D tex2;
3
4
void main()
5
{
6
	vec4 color = texture2D(tex,gl_TexCoord[0].st);
7
	vec4 color2 = texture2D(tex2,gl_TexCoord[0].st);
8
	gl_FragColor = color - color2;
9
}