Transparent_EnhancedLighting.azsli 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. // TODO(MaterialPipeline): I don't like how this file #includes something from BasePBR. I'd rather it include a file
  32. // called StandardPBR_LightingData.azsli which just #includes the BasePBR file. Otherwise this looks suspicious like
  33. // a mistake of some kind.
  34. #include "../../../Shaders/Materials/BasePBR/BasePBR_LightingData.azsli"
  35. #include "../../../Shaders/Materials/EnhancedPBR/EnhancedPBR_LightingBrdf.azsli"
  36. #include "../../../Shaders/Materials/StandardPBR/StandardPBR_LightingEval.azsli"
  37. #include "../Common/TransparentPassVertexAndPixel.azsli"