materialDefinitionInfo

December 17, 2019 ยท View on GitHub

Material information describes how a feature or a set of features is to be rendered, including shading and color. The following table provides the set of attributes and parameters for the type: standard material.

Part of sharedResource that is deprecated with 1.7.

cmn::materialDefinition

Properties

PropertyTypeDescription
namestringA name for the material as assigned in the creating application.
typestringIndicates the material type, chosen from the supported values.
Possible values are:
  • standard
  • water
  • billboard
  • leafcard
  • reference
$refstringThe href that resolves to the shared resource bundle in which the material definition is contained.
paramsmaterialParamsParameter defined for the material.

Note: properties in bold are required

Examples

Example: 3D Scene Layer info for 3D object scene layer

 {
  "type": "standard",
  "name": "standard",
  "params": {
    "reflectivity": 0,
    "ambient": [
      0,
      0,
      0
    ],
    "diffuse": [
      1,
      1,
      1
    ],
    "specular": [
      0.09803921568627451,
      0.09803921568627451,
      0.09803921568627451
    ],
    "shininess": 1,
    "renderMode": "solid",
    "cullFace": "none"
  }
}