{
  "title": "Material",
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema",
  "description": "The material used to shade the geometry, including colorMixMode options.",
  "properties": {
    "color": {
      "$ref": "color_schema.json"
    },
    "colorMixMode": {
      "type": "string",
      "description": "Controls how symbolLayer or visualVariable color is applied onto the underlying geometry color/texture. This property only applies to FillSymbol3DLayer within MeshSymbol3D.<br><ul><li>`tint`: the feature's appearance (in terms of color) should be altered to match the symbol / visual variable color.</li><li>`replace`: the feature's color is replaced with the symbol / visual variable color.</li><li>`multiply`: the feature's color is multiplied with the symbol color.</li></ul>",
      "enum": [
        "multiply",
        "replace",
        "tint"
      ]
    },
    "transparency": {
      "type": "integer",
      "description": "A value between `100` (full transparency) and `0` (full opacity). Ignored if no color is specified.",
      "minimum": 0,
      "maximum": 100
    }
  },
  "additionalProperties": false,
  "esriDocumentation": {
    "examples": [
      {
        "title": "material",
        "code": {
          "material": {
            "color": [
              255,
              0,
              0
            ],
            "transparency": 20,
            "colorMixMode": "tint"
          }
        }
      }
    ]
  }
}
