RtShadows.h 516 B

1234567891011121314151617181920212223242526
  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. const U32 MAX_RT_SHADOW_LAYERS = 8u;
  9. struct RtShadowsUniforms
  10. {
  11. F32 historyRejectFactor[MAX_RT_SHADOW_LAYERS]; // 1.0 means reject, 0.0 not reject
  12. };
  13. struct RtShadowsDenoiseUniforms
  14. {
  15. Mat4 invViewProjMat;
  16. F32 time;
  17. U32 padding[3];
  18. };
  19. ANKI_END_NAMESPACE