From f1c4fdd865a80bb4d635bff69f3c9aae47b4035e Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期三, 24 七月 2024 09:37:49 +0800
Subject: [PATCH] 工单故障类型使用字典
---
src/views/screen/components/screen-map-three/experience/renderer.js | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/views/screen/components/screen-map-three/experience/renderer.js b/src/views/screen/components/screen-map-three/experience/renderer.js
index 725c396..a5febfa 100644
--- a/src/views/screen/components/screen-map-three/experience/renderer.js
+++ b/src/views/screen/components/screen-map-three/experience/renderer.js
@@ -14,7 +14,7 @@
canvas: this.canvas,
antialias: true,
alpha: true,
- // logarithmicDepthBuffer: true
+ logarithmicDepthBuffer: true
});
// this.instance.toneMapping = THREE.CineonToneMapping;
// this.instance.toneMappingExposure = 1.75;
@@ -30,4 +30,8 @@
update() {
this.instance.render(this.scene, this.camera.instance);
}
+ destroy() {
+ this.instance.dispose();
+ this.instance.domElement.remove();
+ }
}
\ No newline at end of file
--
Gitblit v1.8.0