RayTracingMiss.azsl 508 B

12345678910111213141516171819
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include <Atom/Features/SrgSemantics.azsli>
  9. #include <Shaders/RHI/RayTracingCommon.azsli>
  10. // miss shader that runs when a ray does not intersect anything in the scene
  11. [shader("miss")]
  12. void MissShader(inout RayPayload payload)
  13. {
  14. payload.color = float4(0.5f, 0.5f, 0.5f, 1.0f);
  15. }