{
    "Name": "depthPatchDefinition",
    "OverrideMaterial": "engine:unlitCommon.rematerialdefinition",
    "Techniques": [
        {
            "Name": "DepthPatchStencilMask",
            "VertexShader": {
                "Entry": "fullScreen2Vert"
            },
            "State" : {
                "AlphaBlend"             : false,
                "WriteDepth"             : false,
                "WriteStencil"           : true,
                "DepthCompareFunction"   : "Equal",
                "ColorWriteMask"         : "None"
            }
        },
        {
            "Name": "DepthPatch",
            "VertexShader": {
                "Entry": "vsUnlit"
            },
            "State" : {
                "AlphaBlend"             : false,
                "WriteDepth"             : true,
                "DepthCompareFunction"   : "Greater",
                "ColorWriteMask"         : "None"
            },
            "InstancedArguments" : [ "instanceConstantsArray" ],
            "SupportsRuntimeFunctionConstants"      : true
        },
        {
            "Name": "DepthPatchSetDepthToZeroForAABB",
            "VertexShader": {
                "Entry": "vsSetDepthToZero"
            },
            "State" : {
                "AlphaBlend"             : false,
                "WriteDepth"             : true,
                "DepthCompareFunction"   : "Less",
                "ColorWriteMask"         : "None"
            },
            "InstancedArguments" : [ "instanceConstantsArray" ],
            "SupportsRuntimeFunctionConstants"      : true
        },
        {
            "Name": "DepthPatchFullscreenSetDepthToZero",
            "VertexShader": {
                "Entry": "fullScreenSetDepthToZero"
            },
            "State" : {
                "AlphaBlend"             : false,
                "WriteDepth"             : true,
                "WriteStencil"           : true,
                "DepthCompareFunction"   : "Always",
                "ColorWriteMask"         : "None"
            }
        }
    ],
    "TechniqueMapping": {
        "DepthPatchStencilMask": "DepthPatchStencilMask",
        "DepthPatch": "DepthPatch",
        "DepthPatchFullscreenSetDepthToZero": "DepthPatchFullscreenSetDepthToZero",
        "DepthPatchSetDepthToZeroForAABB": "DepthPatchSetDepthToZeroForAABB"
    }
}
