Uniforms.hlsl 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 float3 cCameraPosPS;
  34. uniform float cDeltaTimePS;
  35. uniform float cElapsedTimePS;
  36. uniform float4 cFogParams;
  37. uniform float3 cFogColor;
  38. uniform float2 cGBufferInvSize;
  39. uniform float4 cLightColor;
  40. uniform float4 cLightPosPS;
  41. uniform float3 cLightDirPS;
  42. uniform float4 cMatDiffColor;
  43. uniform float3 cMatEmissiveColor;
  44. uniform float3 cMatEnvMapColor;
  45. uniform float4 cMatSpecColor;
  46. uniform float cNearClipPS;
  47. uniform float cFarClipPS;
  48. uniform float4 cShadowCubeAdjust;
  49. uniform float4 cShadowDepthFade;
  50. uniform float2 cShadowIntensity;
  51. uniform float2 cShadowMapInvSize;
  52. uniform float4 cShadowSplits;
  53. #ifdef SM3
  54. uniform float4x4 cLightMatricesPS[4];
  55. #else
  56. uniform float4x4 cLightMatricesPS[3];
  57. #endif
  58. #endif