// grayscale=ps_2_0 // Code from MPC sampler s0 : register(s0); float4 main(float2 tex : TEXCOORD0) : COLOR { float c0 = dot(tex2D(s0, tex), float4(0.299, 0.587, 0.114, 0)); return c0; }