root / Community Core Vision / Windows / apps / addonsExamples / VS2008 / bin / data / shaders / absSubtract.fs @ 8

View | Annotate | Download (208 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 = abs(color - color2);
9
}