
float4 main(float4 Diffuse : COLOR0,      // Diffuse color
            float2 TexCoord0 : TEXCOORD0, // Texture 0 coordinates
            uniform sampler2D Tex0)       // Texture 0
: COLOR0
{
	// Grey
	float3 Const = float3(0.30, 0.59, 0.11);

	// Compute pixel : texture * diffuse
	float3 Pix = tex2D(Tex0, TexCoord0) * Diffuse.xyz;

	return dot(Const, Pix);
}
