vim-web 0.3.42-dev.13 → 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 +3 -4
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/vim-web.js +3 -4
- package/dist/vim-web.js.map +1 -1
- package/package.json +1 -1
package/dist/vim-web.iife.js
CHANGED
|
@@ -45717,11 +45717,12 @@ void main() {
|
|
|
45717
45717
|
return this._visibleAttribute.value;
|
|
45718
45718
|
}
|
|
45719
45719
|
set visible(value) {
|
|
45720
|
+
var _a2;
|
|
45720
45721
|
if (this._visibleAttribute.apply(value)) {
|
|
45721
45722
|
this.vim.scene.setDirty();
|
|
45722
45723
|
}
|
|
45723
45724
|
if (value) {
|
|
45724
|
-
this._meshes.forEach((m) => {
|
|
45725
|
+
(_a2 = this._meshes) == null ? void 0 : _a2.forEach((m) => {
|
|
45725
45726
|
m.mesh.mesh.visible = true;
|
|
45726
45727
|
});
|
|
45727
45728
|
}
|
|
@@ -52908,14 +52909,12 @@ void main() {
|
|
|
52908
52909
|
if (mesh instanceof InstancedMesh) {
|
|
52909
52910
|
if (this.smallGhostThreshold <= 0) {
|
|
52910
52911
|
mesh.mesh.visible = true;
|
|
52911
|
-
console.log("skip");
|
|
52912
52912
|
continue;
|
|
52913
52913
|
}
|
|
52914
52914
|
const visible2 = mesh.getSubmeshes().some(
|
|
52915
52915
|
(m) => m.object.visible
|
|
52916
52916
|
);
|
|
52917
52917
|
mesh.mesh.visible = !(hide && !visible2 && mesh.size < this.smallGhostThreshold);
|
|
52918
|
-
console.log("visible", mesh.mesh.visible);
|
|
52919
52918
|
}
|
|
52920
52919
|
}
|
|
52921
52920
|
}
|
|
@@ -66887,7 +66886,7 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
66887
66886
|
materials: {
|
|
66888
66887
|
useFastMaterial: false,
|
|
66889
66888
|
useGhostMaterial: true,
|
|
66890
|
-
smallGhostThreshold:
|
|
66889
|
+
smallGhostThreshold: 10
|
|
66891
66890
|
},
|
|
66892
66891
|
isolation: {
|
|
66893
66892
|
enable: true
|