vim-web 0.3.42-dev.12 → 0.3.42-dev.13
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/vim-web.iife.js +4 -4
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/vim-web.js +4 -4
- package/dist/vim-web.js.map +1 -1
- package/package.json +1 -1
package/dist/vim-web.js
CHANGED
|
@@ -45706,9 +45706,7 @@ class Object3D2 {
|
|
|
45706
45706
|
}
|
|
45707
45707
|
if (value) {
|
|
45708
45708
|
this._meshes.forEach((m) => {
|
|
45709
|
-
|
|
45710
|
-
m.mesh.mesh.visible = true;
|
|
45711
|
-
}
|
|
45709
|
+
m.mesh.mesh.visible = true;
|
|
45712
45710
|
});
|
|
45713
45711
|
}
|
|
45714
45712
|
}
|
|
@@ -52894,12 +52892,14 @@ class RenderScene {
|
|
|
52894
52892
|
if (mesh instanceof InstancedMesh2) {
|
|
52895
52893
|
if (this.smallGhostThreshold <= 0) {
|
|
52896
52894
|
mesh.mesh.visible = true;
|
|
52895
|
+
console.log("skip");
|
|
52897
52896
|
continue;
|
|
52898
52897
|
}
|
|
52899
52898
|
const visible2 = mesh.getSubmeshes().some(
|
|
52900
52899
|
(m) => m.object.visible
|
|
52901
52900
|
);
|
|
52902
52901
|
mesh.mesh.visible = !(hide && !visible2 && mesh.size < this.smallGhostThreshold);
|
|
52902
|
+
console.log("visible", mesh.mesh.visible);
|
|
52903
52903
|
}
|
|
52904
52904
|
}
|
|
52905
52905
|
}
|
|
@@ -66871,7 +66871,7 @@ const defaultSettings = {
|
|
|
66871
66871
|
materials: {
|
|
66872
66872
|
useFastMaterial: false,
|
|
66873
66873
|
useGhostMaterial: true,
|
|
66874
|
-
smallGhostThreshold:
|
|
66874
|
+
smallGhostThreshold: 100
|
|
66875
66875
|
},
|
|
66876
66876
|
isolation: {
|
|
66877
66877
|
enable: true
|