From 078a01175c05ae2d0581b433f1c2cee238d128b7 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 19 四月 2024 10:00:44 +0800
Subject: [PATCH] #

---
 src/components/camera.jsx |    6 ++----
 src/pages/base.jsx        |    4 ++--
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/components/camera.jsx b/src/components/camera.jsx
index 1fbbc1b..a1812b9 100644
--- a/src/components/camera.jsx
+++ b/src/components/camera.jsx
@@ -1,5 +1,5 @@
-// 娣诲姞鍦烘櫙鐩告満
-import { useThree, PerspectiveCameraProps } from '@react-three/fiber';
+import React, { useState, useEffect } from 'react';
+import { useThree } from '@react-three/fiber';
 import {
     PerspectiveCamera,
     CameraControls,
@@ -9,14 +9,12 @@
     FirstPersonControls,
     MapControls,
 } from '@react-three/drei';
-import React, { useState, useEffect } from 'react';
 
 const Camera = (props) => {
     const threeObj = useThree();
     const camera = threeObj.camera;
 
     const [choiceCtrls, setChoiceCtrls] = useState(true);
-    const mobxStore = useContext(ThreeStoreContext);
 
     const flyCtrl = () => {
         return (
diff --git a/src/pages/base.jsx b/src/pages/base.jsx
index c56d04a..9d147e5 100644
--- a/src/pages/base.jsx
+++ b/src/pages/base.jsx
@@ -11,7 +11,7 @@
         <div style={{ height: '100%', width: '100%' }}>
             <Canvas>
                 <Lights />
-                {/* <Camera /> */}
+                <Camera />
                 <Sky distance={450000} sunPosition={[0, 1, 0]} inclination={0} azimuth={0.25} />
                 <Box position={[0, 0, 0]} />
                 <OrbitControls />
@@ -36,7 +36,7 @@
             onClick={(event) => click(!clicked)}
             onPointerOver={(event) => (event.stopPropagation(), hover(true))}
             onPointerOut={(event) => hover(false)}>
-            <boxGeometry args={[1, 1, 1]} />
+            <boxGeometry args={[10, 10, 10]} />
             <meshStandardMaterial color={hovered ? 'hotpink' : 'orange'} />
         </mesh>
     )

--
Gitblit v1.9.1