@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/importer-entry.mjs
CHANGED
|
@@ -829,12 +829,14 @@ function toMaterialAsset(mat, ctx) {
|
|
|
829
829
|
} : {}
|
|
830
830
|
}
|
|
831
831
|
};
|
|
832
|
+
const child = !rootContract.extended && ctx?.standardRootGuid !== void 0;
|
|
832
833
|
return {
|
|
833
834
|
kind: "material",
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
835
|
+
...child ? { parent: ctx.standardRootGuid } : {
|
|
836
|
+
colorSpace: "linear",
|
|
837
|
+
passes: [pass],
|
|
838
|
+
parameters: standardMaterialParameters(rootContract.names)
|
|
839
|
+
},
|
|
838
840
|
values
|
|
839
841
|
};
|
|
840
842
|
}
|