RTAOMiss.azsl 469 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 "RTAODefines.azsli"
  9. // miss shader that runs when a ray does not intersect anything in the scene
  10. // Set the ao value to 1 which means illuminated
  11. [shader("miss")]
  12. void AoMiss(inout AORayPayload rayData)
  13. {
  14. rayData.aoValue = 1.0f;
  15. }