From 9d71e24e7982f6915e5f832512925bee9b245f35 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 20 八月 2024 16:13:26 +0800
Subject: [PATCH] #

---
 src/components/house.jsx  |    9 +++++----
 src/store/index.js        |    2 +-
 src/components/camera.jsx |    2 +-
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/components/camera.jsx b/src/components/camera.jsx
index 8d61220..666889a 100644
--- a/src/components/camera.jsx
+++ b/src/components/camera.jsx
@@ -25,7 +25,7 @@
             <PerspectiveCamera
                 ref={cameraRef}
                 makeDefault
-                position={[0, 350, 1150]}
+                position={[0, 600, 1150]}
                 fov={48}
                 near={1}
                 far={100000}
diff --git a/src/components/house.jsx b/src/components/house.jsx
index 3bb80e4..cf96cee 100644
--- a/src/components/house.jsx
+++ b/src/components/house.jsx
@@ -9,7 +9,8 @@
 const House = (props) => {
   const {
     wallThickness = 2,
-    wallOpacity = .9,
+    wallOpacity = .8,
+    roofOpacity = .1,
     width = DEBUG ? 14000 : 1400,
     length = DEBUG ? 12000 : 1200,
     height = DEBUG ? 4000 : 400,
@@ -522,7 +523,7 @@
           metalness={1.0}
           roughness={0.8}
           transparent={true}
-          opacity={wallOpacity}
+          opacity={roofOpacity}
         ></meshPhysicalMaterial>
       </mesh>
       {/* 椤堕儴绗簩灞� */}
@@ -537,7 +538,7 @@
           metalness={1.0}
           roughness={0.8}
           transparent={true}
-          opacity={wallOpacity}
+          opacity={roofOpacity}
         ></meshPhysicalMaterial>
       </mesh>
       {/* 椤堕儴绗笁灞� */}
@@ -552,7 +553,7 @@
           metalness={1.0}
           roughness={0.8}
           transparent={true}
-          opacity={wallOpacity}
+          opacity={roofOpacity}
         ></meshPhysicalMaterial>
       </mesh>
     </group>
diff --git a/src/store/index.js b/src/store/index.js
index 6f875cd..5996369 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -5,7 +5,7 @@
     {
         text: 'Hello World',
         shelfList: {},
-        autoRotate: false,
+        autoRotate: true,
         autoCruise: false,
         lookAt: { x: 0, y: 0, z: 0 },
         cruiseAgvNo: '2',

--
Gitblit v1.9.1