{
    "Name": "WorkspaceLabel",
    "OverrideMaterial": "engine:engineDefaults.rematerialdefinition",
    "Library": "default.metallib",
    "Parameters": {
        "Constants": {
            "color": "material.color",
            "objectToWorldMatrix": "instance.objectToWorldMatrix",
            "objectToCrWorld": "instance.objectToCrWorld",
            "viewToScene": "material.viewToScene",
            "sceneToView": "material.sceneToView",
            "scenePosition": "material.scenePosition",
            "crwsReferencePosition": "global.crwsReferencePosition",
            "crWorldToView": "view.crWorldToView",
            "isRadialFadeEnabled": "material.isRadialFadeEnabled",
            "minimumRadius": "material.minimumRadius",
            "maximumRadius": "material.maximumRadius",
            "unitSystem": "material.unitSystem"
        },
        "Buffers": {
            "position": "geometry.vertexPosition",
            "texcoord": "geometry.vertexUV",
            "normal": "geometry.vertexNormal"
        },
        "Textures": {
            "fontTexture": "framework:com.apple.RCFoundation/WorkspaceLabelFont.png"
        }
    },
    "Techniques": [
        {
            "Name": "Label",
            "VertexShader": {
                "Entry": "vsLabel",
                "Library": "framework:com.apple.RCFoundation/default.metallib"
            },
            "PixelShader": {
                "Entry": "fsLabel",
                "Library": "framework:com.apple.RCFoundation/default.metallib"
            },
            "State" : {
                "AlphaBlend": true,
                "WriteDepth": false,
                "DepthCompareFunction": "GreaterEqual",
                "AlphaBlendOperation": "Add",
                "AlphaSourceFactor": "SourceAlpha",
                "AlphaDestinationFactor": "OneMinusSourceAlpha",
                "RgbBlendOperation": "Add",
                "RgbSourceFactor": "SourceAlpha",
                "RgbDestinationFactor": "OneMinusSourceAlpha"
            }
        }
    ],
    "TechniqueMapping": {
        "WorkspaceGrid": "Label"
    }
}
