Rendering
Materials
The CSS material contract for basic and standard materials, opacity, emissive color, and model overrides.
Materials
The runtime builds materials from computed CSS on the source element.
Public Surface
Core variables
| Variable | Default | Effect |
|---|---|---|
--material-type | basic | Chooses the material pipeline |
--material-color | #ffffff | Base color |
--material-metalness | 0 | Standard material metalness |
--material-roughness | 1 | Standard material roughness |
--material-emissive | #000000 | Emissive color |
--opacity | 1 | Opacity and transparency toggle |
Material selection rule
basicuses the unlit pathstandarduses the PBR path- custom material names are resolved through
String3DCustomMaterialRegistry
Detailed Behavior
If the runtime sees texture maps or standard-only properties, it upgrades the final material path to standard even if the raw type was not standard.