MaterialSpec.baseColor ​Contract 2.0.0 · package sha256
a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e· generated fromconfigurator-runtime.d.tsbyservices/onsite-scripter/scripts/build-contract-docs.mjs; edit the source, not this file.
Property of MaterialSpec · inherited by MaterialInput · stable · since 2.0.0
baseColor?: ColorValue;
The base colour (glTF baseColorFactor): it multiplies the baseColor map the slot wears
under it, the GLB's own, a selected finish's or a rule's, so a colour over a textured finish
tints it, and how dark it goes depends on the texture (a blue over dark walnut is near
black). For a flat colour over a textured finish write maps: { baseColor: 'none' } with it
(PartActions.set's plain-colour example), or preview a whole finish with a
{ materialNodeId } rule. A HexColor is sRGB; { linear } is linear.
Default: '#ffffff'
| Rule | Result |
|---|---|
| 1. Neutral name | pass: baseColor names no product |
| 2. A precedent | pass (through its owner MaterialSpec): glTF 2.0 metallic-roughness material (row K10); glTF KHR_materials_sheen (row K10); glTF KHR_materials_transmission (row K10); glTF KHR_materials_unlit (row K10) |
| 3. Two apps, or labs | pass: 28 apps (ledger: app-04c2774145, app-0c773a4ee3, app-37356bf09f, app-378d190f1b, app-4762caacdc, app-4f16d2f6da, app-4fd23bc869, app-510d750508 and 20 more; fleet cross-check: app-fc07850558) |
| 4. The cheaper fix first | decided per need in Appendix B: rows K10 (through its owner MaterialSpec) at tier stable (a member only where no rule, data, asset or app code serves the need) |