Schemas / Meta / render
rig.render.material
v0.31.0 · draft 5 fields 0 required
Fields
| Field | Type | Meaning | |
|---|---|---|---|
albedoRgb |
rgb | optional | Optional. Base colour (0-1); absent = white |
albedoMap |
entity | optional | Optional texture / paint entity; none = unused |
metallic |
float | optional | Optional. 0-1; absent = 0 |
roughness |
float | optional | Optional. 0-1; absent = 1 |
emissive |
rgb | optional | Optional. Emissive RGB (0-1); absent = black |
Shading parameters. Format when present.
Compose on the same entity as rig.geometry.mesh (or another drawable that uses PBR). Do not add a material field on geometry schemas.
GPU programs live in code packs.
JSON Schema
Resolves at https://rig.works/schemas/rig.render.material.schema.json —
raw file.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://rig.works/schemas/rig.render.material.schema.json",
"title": "rig.render.material",
"type": "object",
"additionalProperties": false,
"properties": {
"albedoRgb": {
"$ref": "./_defs.schema.json#/$defs/rgb"
},
"albedoMap": {
"$ref": "./_defs.schema.json#/$defs/entity"
},
"metallic": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"roughness": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"emissive": {
"$ref": "./_defs.schema.json#/$defs/rgb"
}
}
}