123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- /*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- #pragma once
- #include <Atom/Features/SrgSemantics.azsli>
- #define MATERIALPIPELINE_SHADER_HAS_PIXEL_STAGE 1
- // 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.
- #define OUTPUT_DEPTH 0
- #define FORCE_OPAQUE 0
- #define OUTPUT_SUBSURFACE 1
- #define ENABLE_TRANSMISSION 1
- #define ENABLE_SHADER_DEBUGGING 1
- #define ENABLE_CLEAR_COAT 1
- //////////////////////////////////////////////////////////////////////////////////////////////////
- #ifdef MATERIAL_TYPE_DEFINES_AZSLI_FILE_PATH
- #include MATERIAL_TYPE_DEFINES_AZSLI_FILE_PATH
- #endif
- //////////////////////////////////////////////////////////////////////////////////////////////////
- #include <viewsrg_all.srgi>
- #include <scenesrg_all.srgi>
- #include <Atom/Features/Pipeline/Forward/ForwardPassSrg.azsli>
- #include <Atom/Features/Pipeline/Forward/ForwardPassVertexData.azsli>
- #include <Atom/Features/Pipeline/Forward/ForwardPassPipelineCallbacks.azsli>
- //////////////////////////////////////////////////////////////////////////////////////////////////
- #include MATERIAL_TYPE_AZSLI_FILE_PATH
- //////////////////////////////////////////////////////////////////////////////////////////////////
- // TODO(MaterialPipeline): I don't like how this file #includes something from BasePBR. I'd rather it include a file
- // called StandardPBR_LightingData.azsli which just #includes the BasePBR file. Otherwise this looks suspicious like
- // a mistake of some kind.
- #include "../../../Shaders/Materials/BasePBR/BasePBR_LightingData.azsli"
- #include "../../../Shaders/Materials/EnhancedPBR/EnhancedPBR_LightingBrdf.azsli"
- #include "../../../Shaders/Materials/StandardPBR/StandardPBR_LightingEval.azsli"
- #include "../Common/TransparentPassVertexAndPixel.azsli"
|