materialDefinition

July 19, 2019 ยท View on GitHub

Materials describe how a feature or a set of features is to be rendered, including shading and color.

Part of sharedResource that is deprecated with 1.7.

cmn::sharedResource, cmn::store, psl::store

Properties

PropertyTypeDescription
(identifier)materialDefinitionInfoEach material definition should be unique for the whole service.

Note: properties in bold are required

Note: properties in (parentheses) require a unique identifier

Examples

Example: material definition

 {
  "Mat43": {
    "type": "standard",
    "name": "standard",
    "params": {
      "vertexRegions": false,
      "vertexColors": true,
      "reflectivity": 0,
      "useVertexColorAlpha": false,
      "ambient": [
        0,
        0,
        0
      ],
      "diffuse": [
        1,
        1,
        1
      ],
      "specular": [
        0.09803921568627451,
        0.09803921568627451,
        0.09803921568627451
      ],
      "shininess": 1,
      "renderMode": "solid",
      "cullFace": "none"
    }
  }
}