Uniforms.glsl 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #ifdef COMPILEVS
  2. uniform vec3 cAmbientStartColor;
  3. uniform vec3 cAmbientEndColor;
  4. uniform mat3 cBillboardRot;
  5. uniform vec3 cCameraPos;
  6. uniform mat3 cCameraRot;
  7. uniform float cNearClip;
  8. uniform float cFarClip;
  9. uniform vec4 cDepthMode;
  10. uniform vec3 cFrustumSize;
  11. uniform float cDeltaTime;
  12. uniform float cElapsedTime;
  13. uniform vec4 cGBufferOffsets;
  14. uniform vec3 cLightDir;
  15. uniform vec4 cLightPos;
  16. uniform mat4 cModel;
  17. uniform mat4 cViewProj;
  18. uniform vec4 cUOffset;
  19. uniform vec4 cVOffset;
  20. uniform mat4 cZone;
  21. #ifndef GL_ES
  22. uniform mat4 cLightMatrices[4];
  23. #else
  24. uniform mat4 cLightMatrices[2];
  25. #endif
  26. #ifdef SKINNED
  27. #ifdef RASPI
  28. uniform vec4 cSkinMatrices[32*3];
  29. #else
  30. uniform vec4 cSkinMatrices[64*3];
  31. #endif
  32. #endif
  33. #ifdef NUMVERTEXLIGHTS
  34. uniform vec4 cVertexLights[4*3];
  35. #endif
  36. #endif
  37. #ifdef COMPILEPS
  38. #ifdef GL_ES
  39. precision mediump float;
  40. #endif
  41. uniform vec3 cAmbientColor;
  42. uniform vec3 cCameraPosPS;
  43. uniform float cDeltaTimePS;
  44. uniform float cElapsedTimePS;
  45. uniform vec4 cFogParams;
  46. uniform vec3 cFogColor;
  47. uniform vec2 cGBufferInvSize;
  48. uniform vec4 cLightColor;
  49. uniform vec3 cLightDirPS;
  50. uniform vec4 cLightPosPS;
  51. uniform vec4 cMatDiffColor;
  52. uniform vec3 cMatEmissiveColor;
  53. uniform vec3 cMatEnvMapColor;
  54. uniform vec4 cMatSpecColor;
  55. uniform float cNearClipPS;
  56. uniform float cFarClipPS;
  57. uniform vec4 cShadowCubeAdjust;
  58. uniform vec4 cShadowDepthFade;
  59. uniform vec2 cShadowIntensity;
  60. uniform vec2 cShadowMapInvSize;
  61. uniform vec4 cShadowSplits;
  62. uniform mat4 cLightMatricesPS[4];
  63. #endif