uniform sampler2D texture0;

void main()
{
	//Simple passthrough, outputs interpolated vertex colours.
	vec4 textureColour = texture2D(texture0, gl_TexCoord[0].xy);
	textureColour.xyz = 1.0 - textureColour.xyz;
	gl_FragColor = vec4(gl_Color.r, gl_Color.g, gl_Color.b, gl_Color.a) * textureColour;
	//gl_FragColor.a = 1.0;
}