Ssr.h 672 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright (C) 2009-2020, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #pragma once
  6. #include <shaders/glsl_cpp_common/Common.h>
  7. ANKI_BEGIN_NAMESPACE
  8. // Screen space reflections uniforms
  9. struct SsrUniforms
  10. {
  11. UVec2 m_depthBufferSize;
  12. UVec2 m_framebufferSize;
  13. U32 m_frameCount;
  14. U32 m_depthMipCount;
  15. U32 m_maxSteps;
  16. U32 m_lightBufferMipCount;
  17. UVec3 m_padding0;
  18. U32 m_firstStepPixels;
  19. Mat4 m_prevViewProjMatMulInvViewProjMat;
  20. Mat4 m_projMat;
  21. Mat4 m_invProjMat;
  22. #ifdef __cplusplus
  23. Mat3x4 m_normalMat;
  24. #else
  25. Mat3 m_normalMat;
  26. #endif
  27. };
  28. ANKI_END_NAMESPACE