@forgeax/engine-gltf 0.1.24 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/importer-entry.mjs +6 -4
- package/dist/importer-entry.mjs.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -12
- package/src/__tests__/bridge-material-values.unit.test.ts +23 -0
- package/src/__tests__/gltf.unit.test.ts +9 -0
- package/src/bridge.ts +7 -7
package/dist/index.mjs
CHANGED
|
@@ -1102,12 +1102,14 @@ function toMaterialAsset(mat, ctx) {
|
|
|
1102
1102
|
} : {}
|
|
1103
1103
|
}
|
|
1104
1104
|
};
|
|
1105
|
+
const child = !rootContract.extended && ctx?.standardRootGuid !== void 0;
|
|
1105
1106
|
return {
|
|
1106
1107
|
kind: "material",
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1108
|
+
...child ? { parent: ctx.standardRootGuid } : {
|
|
1109
|
+
colorSpace: "linear",
|
|
1110
|
+
passes: [pass],
|
|
1111
|
+
parameters: standardMaterialParameters(rootContract.names)
|
|
1112
|
+
},
|
|
1111
1113
|
values
|
|
1112
1114
|
};
|
|
1113
1115
|
}
|