Grayscale.fx 270 B

1234567891011121314151617
  1. sampler s0;
  2. float4 PixelShaderFunction(float2 coords: TEXCOORD0) : COLOR0
  3. {
  4. float4 color = tex2D(s0, coords);
  5. color.rgb = color.r;
  6. return color;
  7. }
  8. technique Technique1
  9. {
  10. pass Pass1
  11. {
  12. PixelShader = compile ps_3_0 PixelShaderFunction();
  13. }
  14. }