{
    "Name": "RectLightSpillMaterialDefinition",
    "OverrideMaterial": "engine:engineDefaults.rematerialdefinition",
        "Parameters": {
            "Constants": {
                "crWorldToViewArray": "view.crWorldToViewArray",
                "intensity" : "1",
                "sampleSpread" : "1.5"
            },
            "Buffers": {
                "position": "geometry.vertexPosition",
                "texcoord": "geometry.vertexUV"
            },
            "Textures": {
                "textureSpill": "fallback.black",
                "dmWarpedAlphaMask" : "rendergraph.DMWarpedAlphaMask"
            }
        },
        "Techniques": [
        {
            "Name": "RectLightSpill",
            "VertexShader": {
                "Entry": "vsRectLightSpill"
            },
            "PixelShader": {
                "Entry": "fsRectLightSpill"
            },
            "State" : {
                "AlphaBlend" : true,
                "WriteDepth" : false,
                "DepthCompareFunction" : "Greater"
            },
            "FunctionConstants" : {
                "EnableClipping" : "false",
                "EnableBtMask" : "false",
                "EnableSpatialFocus" : "false",
                "EnableDepthMitigation" : "false",
                "RenderForBlur" : "false",
                "PerceptualBlendingMode" : "0"
            },
            "Variations" : {
                "EnableClipping"  : ["false", "true"],
                "EnableBtMask" : ["false", "true"],
                "EnableSpatialFocus" : ["false", "true"],
                "EnableDepthMitigation" : ["false", "true"],
                "RenderForBlur" : ["false", "true"],
                "PerceptualBlendingMode" : ["0", "1", "2", "3"]
            },
            "RuntimeFunctionConstantDefaults" : {
                "EnableClipping"  : "true",
                "EnableBtMask" : "true",
                "EnableSpatialFocus" : "true",
                "EnableDepthMitigation" : "true",
                "RenderForBlur" : "true",
                "PerceptualBlendingMode" : "0"
            },
            "SupportsRuntimeFunctionConstants" : true,
            "PreloadOptions" : {
                "PixelFormat" : [115, 81],
                "SampleCount" : [4, 1]
            }
        },
        {
            "Name": "RectLightSpillDepthOnly",
            "InheritFromTechnique": "RectLightSpill",
            "State" : {
                "AlphaBlend" : false,
                "WriteDepth" : true,
                "DepthCompareFunction" : "Greater",
                "ColorWriteMask" : "None"
            }
        }],
        "TechniqueMapping": {
            "Transparent": "RectLightSpill",
            "UIDepthPatchPass": "RectLightSpillDepthOnly"
    }
}
