@xviewer.js/core 1.0.0-alpha.42 → 1.0.0-alpha.44
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 +16 -12
- package/dist/main.js.map +1 -1
- package/dist/module.js +16 -12
- package/dist/module.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1065,22 +1065,24 @@ class aLoader {
|
|
|
1065
1065
|
if (object.isMesh) {
|
|
1066
1066
|
meshes.push(object);
|
|
1067
1067
|
const mat = object.material;
|
|
1068
|
-
if (Array.isArray(mat)) mat.forEach((v)=>materials[v.
|
|
1069
|
-
else materials[mat.
|
|
1070
|
-
keys.forEach((k)=>{
|
|
1071
|
-
let tex = mat[k];
|
|
1072
|
-
if (tex) {
|
|
1073
|
-
textures[tex.uuid] = tex;
|
|
1074
|
-
}
|
|
1075
|
-
});
|
|
1068
|
+
if (Array.isArray(mat)) mat.forEach((v)=>materials[v.uuid] = v);
|
|
1069
|
+
else materials[mat.uuid] = mat;
|
|
1076
1070
|
}
|
|
1077
|
-
|
|
1071
|
+
queue.push(...object.children);
|
|
1078
1072
|
}
|
|
1079
|
-
|
|
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
|
+
});
|
|
1081
|
+
Object.assign(node.userData, {
|
|
1080
1082
|
meshes,
|
|
1081
1083
|
materials,
|
|
1082
1084
|
textures
|
|
1083
|
-
};
|
|
1085
|
+
});
|
|
1084
1086
|
return node;
|
|
1085
1087
|
}
|
|
1086
1088
|
constructor(manager){
|
|
@@ -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 {
|