Skip to content

Commit bca76d2

Browse files
committed
Update to use abbreviated name for MaterialX extension
1 parent 63cc8e6 commit bca76d2

File tree

1 file changed

+10
-8
lines changed
  • extensions/2.0/Khronos/KHR_texture_procedurals

1 file changed

+10
-8
lines changed

extensions/2.0/Khronos/KHR_texture_procedurals/README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,24 +102,25 @@ Usage of the procedural structure is indicated by adding the `KHR_texture_proced
102102
]
103103
}
104104
```
105-
To indicate the usage of a specific set of definitions an additional entry must be added to `extensionsUsd`. For example usage of definitions from a version of the MaterialX would look like this:
105+
To indicate the usage of a specific set of definitions an additional entry must be added to `extensionsUsed`. For example usage of definitions from a version of the MaterialX would look like this:
106+
106107
```json
107108
{
108109
"extensionsUsed": [
109-
"KHR_texture_procedurals"
110-
"KHR_texture_procedurals_MaterialX_<version>"
110+
"KHR_texture_procedurals",
111+
"EXT_texture_procedurals_mx_x_y_z"
111112
]
112113
}
113114
```
114-
where `<version>` is specified as a string in the form of `<major version>.<minor version>`. For example, if the MaterialX library version is 1.39, the extension string would be: `KHR_texture_procedurals_MaterialX_1.39`.
115+
where `<version>` is specified as a string in the form of `<major version>.<minor version>.<patch version>`. For example, if the MaterialX library version is 1.39, the extension string would be: `EXT_texture_procedurals_mx_1_39`.
115116

116117
Note that two versions of the same library **cannot** be used in the same glTF asset. For example the following is considered to be invalid:
117118
```json
118119
{
119120
"extensionsUsed": [
120-
"KHR_texture_procedurals"
121-
"KHR_texture_procedurals_MaterialX_1.39"
122-
"KHR_texture_procedurals_MaterialX_2.0>"
121+
"KHR_texture_procedurals",
122+
"EXT_texture_procedurals_mx_1_39",
123+
"EXT_texture_procedurals_mx_2_0"
123124
]
124125
}
125126
```
@@ -128,7 +129,8 @@ Usage of a given extension is defined in the `extensions` object as follows:
128129
```json
129130
{
130131
"extensions": {
131-
"KHR_texture_procedurals_MaterialX_1.39": {
132+
"EXT_texture_procedurals_mx_1_39":{},
133+
"KHR_texture_procedurals": {
132134
"procedurals": []
133135
}
134136
}

0 commit comments

Comments
 (0)