vim-web 0.3.42-dev.14 → 0.3.42-dev.15
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 +1 -3
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/vim-web.js +1 -3
- package/dist/vim-web.js.map +1 -1
- package/package.json +1 -1
package/dist/vim-web.js
CHANGED
|
@@ -52893,14 +52893,12 @@ class RenderScene {
|
|
|
52893
52893
|
if (mesh instanceof InstancedMesh2) {
|
|
52894
52894
|
if (this.smallGhostThreshold <= 0) {
|
|
52895
52895
|
mesh.mesh.visible = true;
|
|
52896
|
-
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);
|
|
52903
|
-
console.log("visible", mesh.mesh.visible);
|
|
52904
52902
|
}
|
|
52905
52903
|
}
|
|
52906
52904
|
}
|
|
@@ -66872,7 +66870,7 @@ const defaultSettings = {
|
|
|
66872
66870
|
materials: {
|
|
66873
66871
|
useFastMaterial: false,
|
|
66874
66872
|
useGhostMaterial: true,
|
|
66875
|
-
smallGhostThreshold:
|
|
66873
|
+
smallGhostThreshold: 10
|
|
66876
66874
|
},
|
|
66877
66875
|
isolation: {
|
|
66878
66876
|
enable: true
|