| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //////////////////////////////////////////////////////////////////////////////
- // ©2005 Electronic Arts Inc
- //
- // Common header file with DXSAS 1.0 definitions
- //////////////////////////////////////////////////////////////////////////////
- #ifndef _SAS_FXH_
- #define _SAS_FXH_
- struct SasCamera
- {
- float4x4 WorldToView;
- float4x4 Projection;
- float2 NearFarClipping;
- };
- struct SasAmbientLight
- {
- float3 Color; // default: {0, 0, 0}
- };
- struct SasDirectionalLight
- {
- float3 Color; // default: {0, 0, 0}
- float3 Direction; // default: {0, 0, 1} // Note: default value non-standard
- };
- struct SasPointLight
- {
- float3 Color; // default: {0, 0, 0}
- float3 Position; // default: {0, 0, 0}
- float2 Range_Inner_Outer; // default: {0, 0} // Note non-standard, used to be just "float Range;"
- };
- struct SasSpotLight
- {
- float3 Color; // default: {0, 0, 0}
- float3 Position; // default: {0, 0, 0}
- float Direction; // default: {0, 0, 0}
- float Range; // default: 0
- float Theta; // default: 0
- float Phi; // default: 0
- };
- #endif // Include guard
|