Skip to content
Konjure / spatial intelligence

Material

← Builtin reference

Surface appearance for geometry rendered by the spatial adapter.

Signature

type Material {
  color: Str = "#6fe3ff";
  roughness: Number = 0.6;
  emissive: Number = 0;
}

The adapter validates color as #RRGGBB or #RRGGBBAA. Roughness must be in 0..=1 and emissive intensity in 0..=100. Renderable geometry receives default Transform and Material values when omitted.

Fields

color: Str
Color in #RRGGBB or #RRGGBBAA form; defaults to #6fe3ff.
Default"#6fe3ff"
roughness: f64
Surface roughness from 0 through 1; defaults to 0.6.
Default0.6
emissive: f64
Emissive intensity from 0 through 100; defaults to 0.
Default0

Examples

Attach material

Geometry receives a default material if none is attached by the spatial adapter.

Tick 0 · 0.00 sThis device
main.kj⌘ / Ctrl + Enter
Loading…Drag to orbit · select to inspect
0 entities
Loading the language runtime…
Output 0
No output.
Expected output
#ff0000

Rust definition

Interpreter RecordValue appearance schema consumed by spatial adapters.

See also