1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /*
- * 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
- //////////////////////////////////////////////////////////////////////////////////////////////////
- // 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"
|