2
0

IndirectDiffuseTypes.h 686 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright (C) 2009-2021, 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 <AnKi/Shaders/Include/Common.h>
  7. ANKI_BEGIN_NAMESPACE
  8. struct IndirectDiffuseUniforms
  9. {
  10. UVec2 m_viewportSize;
  11. Vec2 m_viewportSizef;
  12. Vec4 m_projectionMat;
  13. F32 m_radius; ///< In meters.
  14. U32 m_sampleCount;
  15. F32 m_sampleCountf;
  16. F32 m_ssaoBias;
  17. F32 m_ssaoStrength;
  18. F32 m_padding[3u];
  19. };
  20. struct IndirectDiffuseDenoiseUniforms
  21. {
  22. Mat4 m_invertedViewProjectionJitterMat;
  23. UVec2 m_viewportSize;
  24. Vec2 m_viewportSizef;
  25. F32 m_sampleCountDiv2;
  26. F32 m_padding[3u];
  27. };
  28. ANKI_END_NAMESPACE