ErrorMissing.fx 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //////////////////////////////////////////////////////////////////////////////
  2. // ©2007 Electronic Arts Inc
  3. //
  4. // FX Shader for missing materials
  5. //////////////////////////////////////////////////////////////////////////////
  6. #include "Common.fxh"
  7. // ----------------------------------------------------------------------------
  8. // Transformations
  9. // ----------------------------------------------------------------------------
  10. float4x4 WorldViewProjection : WorldViewProjection;
  11. // ----------------------------------------------------------------------------
  12. struct VSOutput
  13. {
  14. float4 Position : POSITION;
  15. };
  16. // ----------------------------------------------------------------------------
  17. VSOutput VS(float3 Position : POSITION)
  18. {
  19. VSOutput Out;
  20. Out.Position = mul(float4(Position, 1), WorldViewProjection);
  21. return Out;
  22. }
  23. // ----------------------------------------------------------------------------
  24. float4 PS(VSOutput In) : COLOR
  25. {
  26. return float4(1, 0, 1, 1);
  27. }
  28. // ----------------------------------------------------------------------------
  29. technique Default
  30. {
  31. pass P0
  32. {
  33. VertexShader = compile VS_2_0 VS();
  34. PixelShader = compile PS_2_0 PS();
  35. ZEnable = false;
  36. ZWriteEnable = true;
  37. CullMode = None;
  38. AlphaBlendEnable = false;
  39. ColorWriteEnable = RGBA;
  40. AlphaTestEnable = false;
  41. }
  42. }