@xviewer.js/core 1.0.0-alpha.42 → 1.0.0-alpha.43
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/main.js +12 -8
- package/dist/main.js.map +1 -1
- package/dist/module.js +12 -8
- package/dist/module.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1067,15 +1067,17 @@ class aLoader {
|
|
|
1067
1067
|
const mat = object.material;
|
|
1068
1068
|
if (Array.isArray(mat)) mat.forEach((v)=>materials[v.name] = v);
|
|
1069
1069
|
else materials[mat.name] = mat;
|
|
1070
|
-
keys.forEach((k)=>{
|
|
1071
|
-
let tex = mat[k];
|
|
1072
|
-
if (tex) {
|
|
1073
|
-
textures[tex.uuid] = tex;
|
|
1074
|
-
}
|
|
1075
|
-
});
|
|
1076
1070
|
}
|
|
1077
|
-
|
|
1071
|
+
queue.push(...object.children);
|
|
1078
1072
|
}
|
|
1073
|
+
Object.values(materials).forEach((mat)=>{
|
|
1074
|
+
keys.forEach((k)=>{
|
|
1075
|
+
let tex = mat[k];
|
|
1076
|
+
if (tex) {
|
|
1077
|
+
textures[tex.uuid] = tex;
|
|
1078
|
+
}
|
|
1079
|
+
});
|
|
1080
|
+
});
|
|
1079
1081
|
node.userData.meshData = {
|
|
1080
1082
|
meshes,
|
|
1081
1083
|
materials,
|
|
@@ -1088,6 +1090,7 @@ class aLoader {
|
|
|
1088
1090
|
}
|
|
1089
1091
|
}
|
|
1090
1092
|
aLoader._texKeys = [
|
|
1093
|
+
"map",
|
|
1091
1094
|
"alphaMap",
|
|
1092
1095
|
"aoMap",
|
|
1093
1096
|
"bumpMap",
|
|
@@ -1098,7 +1101,8 @@ aLoader._texKeys = [
|
|
|
1098
1101
|
"metalnessMap",
|
|
1099
1102
|
"normalMap",
|
|
1100
1103
|
"roughnessMap",
|
|
1101
|
-
"specularMap"
|
|
1104
|
+
"specularMap",
|
|
1105
|
+
"alphaMap"
|
|
1102
1106
|
];
|
|
1103
1107
|
|
|
1104
1108
|
class aEXRLoader extends aLoader {
|