Ssr.h 509 B

1234567891011121314151617181920212223242526
  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. Vec4 m_nearPad3;
  12. Mat4 m_prevViewProjMatMulInvViewProjMat;
  13. Mat4 m_projMat;
  14. Mat4 m_invProjMat;
  15. #ifdef __cplusplus
  16. Mat3x4 m_normalMat;
  17. #else
  18. Mat3 m_normalMat;
  19. #endif
  20. };
  21. ANKI_END_NAMESPACE