12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- /*
- * 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
- //////////////////////////////////////////////////////////////////////////////////////////////////
- // Lighting eval functions from the forward-pass that use functions defined by the material
- #include <Atom/Features/Pipeline/Forward/ForwardPassEvaluateLighting.azsli>
- #include "../Common/TransparentPassVertexAndPixel.azsli"
|