uniform sampler2D texture0;

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