Transparent_EnhancedLighting.azsli 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. #pragma once
  9. #include <Atom/Features/SrgSemantics.azsli>
  10. #define MATERIALPIPELINE_SHADER_HAS_PIXEL_STAGE 1
  11. // TODO(MaterialPipeline): In the end, after all refactoring and rearranging of our shader code is done, some of these flags might become unnecessary and should be re-evaluated.
  12. #define OUTPUT_DEPTH 0
  13. #define FORCE_OPAQUE 0
  14. #define OUTPUT_SUBSURFACE 1
  15. #define ENABLE_TRANSMISSION 1
  16. #define ENABLE_SHADER_DEBUGGING 1
  17. #define ENABLE_CLEAR_COAT 1
  18. //////////////////////////////////////////////////////////////////////////////////////////////////
  19. #ifdef MATERIAL_TYPE_DEFINES_AZSLI_FILE_PATH
  20. #include MATERIAL_TYPE_DEFINES_AZSLI_FILE_PATH
  21. #endif
  22. //////////////////////////////////////////////////////////////////////////////////////////////////
  23. #include <viewsrg_all.srgi>
  24. #include <scenesrg_all.srgi>
  25. #include <Atom/Features/Pipeline/Forward/ForwardPassSrg.azsli>
  26. #include <Atom/Features/Pipeline/Forward/ForwardPassVertexData.azsli>
  27. #include <Atom/Features/Pipeline/Forward/ForwardPassPipelineCallbacks.azsli>
  28. //////////////////////////////////////////////////////////////////////////////////////////////////
  29. #include MATERIAL_TYPE_AZSLI_FILE_PATH
  30. //////////////////////////////////////////////////////////////////////////////////////////////////
  31. // Lighting eval functions from the forward-pass that use functions defined by the material
  32. #include <Atom/Features/Pipeline/Forward/ForwardPassEvaluateLighting.azsli>
  33. #include "../Common/TransparentPassVertexAndPixel.azsli"