RtShadows.hlsl 476 B

12345678910111213141516
  1. // Copyright (C) 2009-present, 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/MiscRendererTypes.h>
  7. #include <AnKi/Shaders/PackFunctions.hlsl>
  8. constexpr F32 kRtShadowsMaxHistoryLength = 16.0; // The frames of history
  9. struct [raypayload] RtShadowsRayPayload
  10. {
  11. F32 m_shadowFactor : write(caller, anyhit, miss): read(caller);
  12. };