float4 main(float2 tex0 : TEXCOORD0,
			uniform sampler2D texture,
			uniform float bri,
			uniform float param1) : COLOR0
{
	float3 color = tex2D(texture, tex0);
	float3 gcolor;
	gcolor.r = (color.r+color.g+color.b)*0.332;
	gcolor.g = (color.r+color.g+color.b)*0.332;
	gcolor.b = (color.r+color.g+color.b)*0.332;

	color = (color*param1+(1-param1)*gcolor*gcolor*gcolor*12.0)*bri;

	return float4(color, 1.0);
}