From acd4f746de3e89e4a8b9b47b0f82e25cc25a17c1 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期五, 14 二月 2025 09:57:37 +0800
Subject: [PATCH] 数据中心调整

---
 src/views/screen/components/screen-map-three/experience/renderer.js |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 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 3e7893c..a5febfa 100644
--- a/src/views/screen/components/screen-map-three/experience/renderer.js
+++ b/src/views/screen/components/screen-map-three/experience/renderer.js
@@ -13,12 +13,13 @@
         this.instance = new THREE.WebGLRenderer({
             canvas: this.canvas,
             antialias: true,
-            alpha: true
+            alpha: true,
+            logarithmicDepthBuffer: true
         });
-        this.instance.toneMapping = THREE.CineonToneMapping;
-        this.instance.toneMappingExposure = 1.75;
-        this.instance.shadowMap.enabled = true;
-        this.instance.shadowMap.type = THREE.PCFSoftShadowMap;
+        // this.instance.toneMapping = THREE.CineonToneMapping;
+        // this.instance.toneMappingExposure = 1.75;
+        // this.instance.shadowMap.enabled = true;
+        // this.instance.shadowMap.type = THREE.PCFSoftShadowMap;
         this.instance.setSize(this.sizes.width, this.sizes.height);
         this.instance.setPixelRatio(this.sizes.pixelRatio);
     }
@@ -29,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