Uniforms.hlsl 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #ifdef COMPILEVS
  2. // Vertex shader uniforms
  3. uniform float3 cAmbientStartColor;
  4. uniform float3 cAmbientEndColor;
  5. uniform float3x3 cBillboardRot;
  6. uniform float3 cCameraPos;
  7. uniform float3x3 cCameraRot;
  8. uniform float cNearClip;
  9. uniform float cFarClip;
  10. uniform float4 cDepthMode;
  11. uniform float cDeltaTime;
  12. uniform float cElapsedTime;
  13. uniform float3 cFrustumSize;
  14. uniform float4 cGBufferOffsets;
  15. uniform float3 cLightDir;
  16. uniform float4 cLightPos;
  17. uniform float4x3 cModel;
  18. uniform float4x4 cViewProj;
  19. uniform float4 cUOffset;
  20. uniform float4 cVOffset;
  21. uniform float4x3 cZone;
  22. uniform float4x4 cLightMatrices[4];
  23. #ifdef SKINNED
  24. uniform float4x3 cSkinMatrices[64];
  25. #endif
  26. #ifdef NUMVERTEXLIGHTS
  27. uniform float4 cVertexLights[4*3];
  28. #endif
  29. #endif
  30. #ifdef COMPILEPS
  31. // Pixel shader uniforms
  32. uniform float3 cAmbientColor;
  33. uniform float cDeltaTimePS;
  34. uniform float cElapsedTimePS;
  35. uniform float4 cFogParams;
  36. uniform float3 cFogColor;
  37. uniform float2 cGBufferInvSize;
  38. uniform float4 cLightColor;
  39. uniform float4 cLightPosPS;
  40. uniform float3 cLightDirPS;
  41. uniform float4 cMatDiffColor;
  42. uniform float3 cMatEmissiveColor;
  43. uniform float3 cMatEnvMapColor;
  44. uniform float4 cMatSpecColor;
  45. uniform float cNearClipPS;
  46. uniform float cFarClipPS;
  47. uniform float4 cShadowCubeAdjust;
  48. uniform float4 cShadowDepthFade;
  49. uniform float2 cShadowIntensity;
  50. uniform float2 cShadowMapInvSize;
  51. uniform float4 cShadowSplits;
  52. #ifdef SM3
  53. uniform float4x4 cLightMatricesPS[4];
  54. #else
  55. uniform float4x4 cLightMatricesPS[3];
  56. #endif
  57. #endif