From d18dd311f9b7a7a77a832f57e74434d946f6f0c5 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 11 五月 2024 10:43:39 +0800
Subject: [PATCH] #
---
src/pages/fiber.jsx | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/src/pages/fiber.jsx b/src/pages/fiber.jsx
index ab82b4d..c108f86 100644
--- a/src/pages/fiber.jsx
+++ b/src/pages/fiber.jsx
@@ -1,6 +1,5 @@
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'
@@ -20,6 +19,7 @@
gl={{
logarithmicDepthBuffer: true,
}}
+ onCreated={(state) => (state.gl.shadowMap.autoUpdate = false)}
>
<Lights />
<Camera />
@@ -28,8 +28,6 @@
<TreeGroup />
<House />
<Warehouse />
- <OrbitControls />
- <Environment background preset="night" />
<Help />
</Canvas>
<Left />
--
Gitblit v1.9.1