Sas.fxh 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //////////////////////////////////////////////////////////////////////////////
  2. // ©2005 Electronic Arts Inc
  3. //
  4. // Common header file with DXSAS 1.0 definitions
  5. //////////////////////////////////////////////////////////////////////////////
  6. #ifndef _SAS_FXH_
  7. #define _SAS_FXH_
  8. struct SasCamera
  9. {
  10. float4x4 WorldToView;
  11. float4x4 Projection;
  12. float2 NearFarClipping;
  13. };
  14. struct SasAmbientLight
  15. {
  16. float3 Color; // default: {0, 0, 0}
  17. };
  18. struct SasDirectionalLight
  19. {
  20. float3 Color; // default: {0, 0, 0}
  21. float3 Direction; // default: {0, 0, 1} // Note: default value non-standard
  22. };
  23. struct SasPointLight
  24. {
  25. float3 Color; // default: {0, 0, 0}
  26. float3 Position; // default: {0, 0, 0}
  27. float2 Range_Inner_Outer; // default: {0, 0} // Note non-standard, used to be just "float Range;"
  28. };
  29. struct SasSpotLight
  30. {
  31. float3 Color; // default: {0, 0, 0}
  32. float3 Position; // default: {0, 0, 0}
  33. float Direction; // default: {0, 0, 0}
  34. float Range; // default: 0
  35. float Theta; // default: 0
  36. float Phi; // default: 0
  37. };
  38. #endif // Include guard