From c4b00b0268f35a7a9e016e818b0f6e27bc3876f0 Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期四, 28 三月 2024 08:56:50 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/Four-Way-Rack' into Four-Way-Rack

---
 zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js b/zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js
index aaa6a1e..d09eb65 100644
--- a/zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js
+++ b/zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js
@@ -3,7 +3,7 @@
 import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'
 import TWEEN from '@tweenjs/tween.js';
 
-const help = true;
+const help = false;
 const debugCamera = {
     x: 200,
     y: 200,
@@ -23,7 +23,7 @@
         this.stats = this.initStats(container);
         this.windowResize();
         this.initRaycaster(container);
-        // initLight(this.scene);
+        initLight(this.scene);
 
         this.objects = [];
     }
@@ -64,7 +64,7 @@
     }
 
     initCamera = () => {
-        const camera = new THREE.PerspectiveCamera(70, this.fullWidth / this.fullHeight, 1, 10000);
+        const camera = new THREE.PerspectiveCamera(70, this.fullWidth / this.fullHeight, 1, 60000);
         camera.position.set(debugCamera.x, debugCamera.y, debugCamera.z);
         this.scene.add(camera);
         return camera;
@@ -178,13 +178,16 @@
     scene.add(ambientLight);
 
     const spotLight = new THREE.SpotLight(0xffffff, 8);
-    spotLight.position.set(0, 300, 0);
-    spotLight.angle = Math.PI * 1;
-    spotLight.decay = 0;
+    spotLight.position.set(0, 1000, 0);
+    spotLight.angle = Math.PI / 4;  // 瑙掑害
+    spotLight.distance = 1500;  // 璺濈
+    spotLight.decay = 0;    // 鍏夎“
+    // 鍏夌収闃村奖鍙婂叾鐢熸晥鑼冨洿
     spotLight.castShadow = true;
-    spotLight.shadow.camera.near = 200;
+    spotLight.shadow.camera.near = 50;
     spotLight.shadow.camera.far = 2000;
     spotLight.shadow.bias = - 0.000222;
+    // 闃村奖鐗规晥楂樹綆鍊�
     spotLight.shadow.mapSize.width = 1024;
     spotLight.shadow.mapSize.height = 1024;
     scene.add(spotLight);

--
Gitblit v1.9.1