CONTENT CONTRACT · VERSION 1
MaterialDefinition
A native material selecting one fixed engine shader family.
Signature
{ color_rgb: {ColorChannel}, hardness: PositiveCount, id: ContentId, shader: MaterialShader, solid: boolean, surface: (TerrainSurface)?, voxel_material: (Name)? }Fields
| Name | Type | Meaning |
|---|---|---|
color_rgb | {ColorChannel} | Red, green and blue channels in that order. Items: 3…3 |
hardness | PositiveCount | Positive resistance to harvesting or destruction. Range: 1…2147483647; Unit: count |
id | ContentId | Package-qualified identity; unique within its declaring namespace. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
shader | MaterialShader | Rendering family used for this material. |
solid | boolean | Whether this material contributes solid collision geometry. |
surface | TerrainSurface | Engine terrain surface; required for and only allowed with the terrain shader. |
voxel_material | Name | Voxel material of the map's world library; required for and only allowed with the voxel shader. Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |