{
    "Name": "uiDepthOnlyMaterialDefinition",
    "OverrideMaterial": "engine:unlitCommon.rematerialdefinition",
    "Parameters": {
        "Constants": {
            "colorTint" : "[1, 0, 0, 0.4, displayp3]"
        }
    },
    "Techniques": [
    {
        "Name": "UIDepthOnly",
        "VertexShader": {
            "Entry": "vsUnlit"
        },
        "State" : {
            "WriteDepth"           : true,
            "DepthCompareFunction" : "Greater",
            "ColorWriteMask"       : "None"
        },
        "InstancedArguments" : [ "instanceConstantsArray" ],
        "SupportsRuntimeFunctionConstants" : true,
        "PreloadOptions" : {
            "PixelFormat" : [115, 81],
            "SampleCount" : [4, 1]
        }
    },
    {
        "Name": "AlwaysWriteColorAndDepth",
        "VertexShader": {
            "Entry": "vsUnlit"
        },
        "PixelShader": {
            "Entry": "fsUnlit"
        },
        "State" : {
            "AlphaBlend"                : true,
            "WriteDepth"                : true,
            "DepthCompareFunction"      : "Always",
            "AlphaBlendOperation"       : "Add",
            "AlphaSourceFactor"         : "One",
            "AlphaDestinationFactor"    : "OneMinusSourceAlpha",
            "RgbBlendOperation"         : "Add",
            "RgbSourceFactor"           : "One",
            "RgbDestinationFactor"      : "OneMinusSourceAlpha"
        },
        "FunctionConstants" : {
            "EnableUnlitTexture"             : "true",
            "EnableOpacityMap"               : "true",
            "EnableTransparency"             : "true",
            "EnableSRGBToLinearConversion"   : "true",
            "EnableDepthMitigation"          : "false",
            "EnableBtMask"                   : "false",
            "EnableNearFieldVignetting"      : "false",
            "EnableVisualDepthStaticOcclusion" : "false",
            "EnableSceneUnderstandingStaticOcclusion" : "false",
            "IsVisualDepthStaticOcclusionTextureAvailable" : "false"
        },
        "DefaultVariations" : [ "UnlitCommon" ],
        "DebugMapping": "UnlitDebug",
        "SupportsRuntimeFunctionConstants" : true
    }],
    "TechniqueMapping": {
        "UIDepthPatchPass": "UIDepthOnly"
    }
}
