Skip to content

Commit 26d2629

Browse files
committed
Add new language defining mappings usage within viewer applications
1 parent 09a22ce commit 26d2629

File tree

1 file changed

+3
-1
lines changed
  • extensions/2.0/Khronos/KHR_materials_variants

1 file changed

+3
-1
lines changed

extensions/2.0/Khronos/KHR_materials_variants/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ In the second case, the shoe would have a white body and sole but red laces. In
108108
]
109109
```
110110

111-
The variants property within each mapping refers to the index of a material variant located at the glTF root node:
111+
Viewer-specific logic defines, for a given instance of a glTF asset, up to one single active variant. Each `mappings` item gives the material to a compliant viewer should apply for that primitive when any of its `variants` indices is the active one. If there are no matching variants found within `mappings`, or there is no active variant, fall back on vanilla glTF behaviour. Across the entire `mappings` array, each variant index and each material must be used no more than one time.
112+
113+
For each mapping, each index of the `variants` property refers to the index of a material variant located at the glTF root node:
112114

113115
```javascript
114116
{

0 commit comments

Comments
 (0)