Unity Web Shader IDE
Full source <URP>/Shaders/Utils/CopyDepth.shader ShaderLab / HLSL 28 lines 1 symbols 1 includes Hide source Show source
CopyDepth.shader <URP>/Shaders/Utils/CopyDepth.shader
Language
ShaderLab / HLSL
Lines
28
Symbols
1
Includes
1
Open IDE root

<URP>/Shaders/Utils/CopyDepth.shader full source

Shader "Hidden/Universal Render Pipeline/CopyDepth"
{
    SubShader
    {
        Tags { "RenderType" = "Opaque" "RenderPipeline" = "UniversalPipeline"}

        Pass
        {
            Name "CopyDepth"
            ZTest Always
            ZWrite[_ZWrite]
            ColorMask R
            Cull Off

            HLSLPROGRAM
            #pragma vertex Vert
            #pragma fragment frag

            #pragma multi_compile _ _DEPTH_MSAA_2 _DEPTH_MSAA_4 _DEPTH_MSAA_8
            #pragma multi_compile _ _OUTPUT_DEPTH

            #include "Packages/com.unity.render-pipelines.universal/Shaders/Utils/CopyDepthPass.hlsl"

            ENDHLSL
        }
    }
}