The material used to shade the geometry.

Referenced by: ExtrudeSymbol3DLayer, IconSymbol3DLayer, LineSymbol3DLayer, ObjectSymbol3DLayer, PathSymbol3DLayer, TextSymbol3DLayer

Properties

PropertyDetails
colorColor is represented as a three or four-element array.
emissiveProperties for emissive materials.
transparencyA value between 100 (full transparency) and 0 (full opacity). Ignored if no color is specified.

Color material Example

{
"color": [
255,
0,
0
],
"transparency": 20
}

Material with color and emissive Example

{
"color": [
255,
0,
0
],
"transparency": 20,
"emissive": {
"strength": 0.8,
"source": "emissive"
}
}