Bevels.fx 336 B

123456789101112131415161718
  1. sampler s0;
  2. float4 PixelShaderFunction(float2 coords: TEXCOORD0) : COLOR0
  3. {
  4. float4 color = tex2D(s0, coords);
  5. color -= tex2D(s0, coords - 0.002) * 2.5f;
  6. color += tex2D(s0, coords + 0.002) * 2.5f;
  7. return color;
  8. }
  9. technique Technique1
  10. {
  11. pass Pass1
  12. {
  13. PixelShader = compile ps_3_0 PixelShaderFunction();
  14. }
  15. }