1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /*
- * 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.
- // Some of these setting used to be in ShaderQualityOptions.azsli as a basic/limited solution for multiple pipelines.
- #define FORCE_IBL_IN_FORWARD_PASS 1
- #define ENABLE_AREA_LIGHT_VALIDATION 0
- #define OUTPUT_DEPTH 0
- #define FORCE_OPAQUE 0
- #define OUTPUT_SUBSURFACE 0
- #define ENABLE_TRANSMISSION 0
- #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/StandardPBR/StandardPBR_LightingBrdf.azsli"
- #include "../../../Shaders/Materials/StandardPBR/StandardPBR_LightingEval.azsli"
- #include "../Common/TransparentPassVertexAndPixel.azsli"
|