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

---
 src/pages/fiber.jsx |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/pages/fiber.jsx b/src/pages/fiber.jsx
index ab82b4d..7f6bfee 100644
--- a/src/pages/fiber.jsx
+++ b/src/pages/fiber.jsx
@@ -1,10 +1,10 @@
 import { useRef, useState } from 'react'
 import { Canvas, useFrame } from '@react-three/fiber'
-import { OrbitControls } from '@react-three/drei'
 import { Environment, Sky } from '@react-three/drei'
 import Help from '../components/help'
 import Lights from '../components/light'
 import Camera from '../components/camera'
+import Controls from '../components/ctrl'
 import Buildings from '../components/buidings'
 import TreeGroup from '../components/tree-group'
 import House from '../components/house'
@@ -20,20 +20,20 @@
                 gl={{
                     logarithmicDepthBuffer: true,
                 }}
+                onCreated={(state) => (state.gl.shadowMap.autoUpdate = false)}
             >
                 <Lights />
                 <Camera />
+                <Controls />
                 <Sky distance={450000} sunPosition={[0, 1, 0]} inclination={0} azimuth={0.25} />
                 <Buildings />
                 <TreeGroup />
                 <House />
                 <Warehouse />
-                <OrbitControls />
-                <Environment background preset="night" />
                 <Help />
             </Canvas>
             <Left />
-            <Right />
+            {/* <Right /> */}
         </div>
 
     )

--
Gitblit v1.9.1