{
    "Name": "UnlitCommonMaterialDefinition",
    "OverrideMaterial": "pbrCommon.rematerialdefinition",
    "Parameters": {
        "Constants": {
            "colorTint" : "[1, 1, 1, 1, displayp3]"
        },
        "Textures": {
            "textureBaseColor"  : "fallback.white",
            "textureOpacity"    : "fallback.white"
        },
        "Samplers": {
            "baseColorSampler": {
                "BaseFilter": "Trilinear"
            },
            "opacitySampler": {
                "BaseFilter": "Trilinear"
            },
            "dmSampler": {
                "BaseFilter": "Bilinear"
            }
        }
    },
    "DebugMappings": [
        {
            "Name": "UnlitDebug",
            "Mappings": {
                "NoDebug": 0,
                "BaseColorTexture": 1,
                "OpacityTexture": 2,
                "VertexUV": 3,
                "VertexColor": 4,
                "DerivedNormal": 5,
                "DerivedTangent": 6,
                "DerivedBitangent": 7,
                "FinalColor": 8,
                "FinalAlpha": 9,
                "Breakthrough": 10,
                "DistanceToGazeHitPoint": 11,
                "DepthMitigation": 12,
                "DepthMitigationDarkening": 13,
                "PerPixelNearFieldVignetting": 14,
                "Clipping": 15,
                "UIBlending": 16
            }
        }
    ],
    "Techniques": [
    {
        "Name": "UnlitOpaque",
        "VertexShader": {
            "Entry": "vsUnlit"
        },
        "PixelShader": {
            "Entry": "fsUnlit"
        },
        "State" : {
            "AlphaBlend" : false,
            "WriteDepth" : true,
            "DepthCompareFunction" : "GreaterEqual"
        },
        "FunctionConstants" : {
            "EnableUnlitTexture"             : "true",
            "EnableSRGBToLinearConversion"   : "true",
            "VertexColorOption"              : "0",
            "EnableDepthMitigation"          : "false",
            "EnableVisualDepthStaticOcclusion" : "false",
            "EnableSceneUnderstandingStaticOcclusion" : "false",
            "IsVisualDepthStaticOcclusionTextureAvailable" : "false",
            "EnableBtMask"                   : "false",
            "EnableUIBlending"               : "false",
            "EnableNearFieldVignetting"      : "false",
            "DisableFadeOpacity"             : "true"
        },
        "DefaultVariations" : [ "UnlitCommon" ],
        "DebugMapping": "UnlitDebug",
        "SupportsRuntimeFunctionConstants" : true,
        "AllowRuntimeTechniqueStateOverride" : true,
        "IsPrecompiled" : true
    },
    {
        "Name": "UnlitTransparent",
        "VertexShader": {
            "Entry": "vsUnlit"
        },
        "PixelShader": {
            "Entry": "fsUnlit"
        },
        "State" : {
            "PreferProgrammableBlending" : true,
            "AlphaBlend"                : true,
            "WriteDepth"                : true,
            "DepthCompareFunction"      : "GreaterEqual",
            "AlphaBlendOperation"       : "Add",
            "AlphaSourceFactor"         : "One",
            "AlphaDestinationFactor"    : "OneMinusSourceAlpha",
            "RgbBlendOperation"         : "Add",
            "RgbSourceFactor"           : "One",
            "RgbDestinationFactor"      : "OneMinusSourceAlpha"
        },
        "FunctionConstants" : {
            "EnableUnlitTexture"             : "true",
            "EnableOpacityMap"               : "true",
            "EnableTransparency"             : "true",
            "EnableSRGBToLinearConversion"   : "true",
            "EnableDepthMitigation"          : "false",
            "EnableVisualDepthStaticOcclusion" : "false",
            "EnableSceneUnderstandingStaticOcclusion" : "false",
            "IsVisualDepthStaticOcclusionTextureAvailable" : "false",
            "EnableBtMask"                   : "false",
            "EnableUIBlending"               : "false",
            "EnableNearFieldVignetting"      : "false",
            "EnableGlow"                     : "false"
        },
        "DefaultVariations" : [ "UnlitCommon" ],
        "DebugMapping": "UnlitDebug",
        "SupportsRuntimeFunctionConstants" : true,
        "AllowRuntimeTechniqueStateOverride" : true
    },
    {
        "Name": "UnlitFadeOpaque",
        "InheritFromTechnique": "UnlitTransparent",
        "InheritState": true,
        "FunctionConstants" : {
            "EnableTransparency" : "false"
        }
    },
    {
        "Name": "UnlitDepthOnly",
        "InheritFromTechnique": "UnlitOpaque",
        "InheritState": false,
        "State" : {
            "ColorWriteMask" : "None",
            "WriteDepth": true,
            "DepthCompareFunction": "Greater"
        }
    }]
}
