RendererCommonUniforms.glsl 515 B

12345678910111213141516171819202122
  1. // Copyright (C) 2009-2017, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #ifndef ANKI_SHADERS_RENDERER_COMMON_UNIFORMS_GLSL
  6. #define ANKI_SHADERS_RENDERER_COMMON_UNIFORMS_GLSL
  7. #include "shaders/Common.glsl"
  8. struct RendererCommonUniforms
  9. {
  10. // Projection params
  11. vec4 projectionParams;
  12. // x: near, y: far, zw: depth linearization coefficients
  13. vec4 nearFarLinearizeDepth;
  14. mat4 projectionMatrix;
  15. };
  16. #endif