RtShadows.h 589 B

1234567891011121314151617181920212223242526272829
  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. U32 activeShadowLayerMask;
  13. U32 padding[3];
  14. };
  15. struct RtShadowsDenoiseUniforms
  16. {
  17. Mat4 invViewProjMat;
  18. F32 time;
  19. U32 activeShadowLayerMask;
  20. U32 padding[2];
  21. };
  22. ANKI_END_NAMESPACE