Skip to content

Latest commit

 

History

History
56 lines (45 loc) · 1.26 KB

materialDefinition.cmn.md

File metadata and controls

56 lines (45 loc) · 1.26 KB

materialDefinition

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.

Related:

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

Properties

Property Type Description
(identifier) materialDefinitionInfo Each 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"
    }
  }
}