From e29b81d052871d5ea9a4d627595f9aceb22b0d86 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 19 四月 2024 09:32:02 +0800
Subject: [PATCH] #
---
src/pages/base.jsx | 5 +++--
src/components/help.jsx | 4 ----
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/components/help.jsx b/src/components/help.jsx
index 3359bd8..f6f8ba1 100644
--- a/src/components/help.jsx
+++ b/src/components/help.jsx
@@ -5,10 +5,6 @@
return (
<Suspense>
<GizmoHelper alignment="bottom-right" margin={[80, 80]} onUpdate={() => null}>
- {/* <mesh>
- <boxBufferGeometry args={[1, 1, 1]} />
- <meshStandardMaterial color="hotpink" />
- </mesh> */}
<GizmoViewport labelColor="white" axisHeadScale={1} />
<Stats className="!right-0 top-0 !left-[inherit]" />
</GizmoHelper>
diff --git a/src/pages/base.jsx b/src/pages/base.jsx
index 150d9e0..59a35bc 100644
--- a/src/pages/base.jsx
+++ b/src/pages/base.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 } from '@react-three/drei'
+import { Environment, Sky } from '@react-three/drei'
import Help from '@/components/help'
-const Base = () => {
+const Base = (props) => {
return (
<div style={{ height: '100%', width: '100%' }}>
<Canvas>
@@ -13,6 +13,7 @@
<pointLight position={[-10, -10, -10]} decay={0} intensity={Math.PI} />
<Box position={[0, 0, 0]} />
<OrbitControls />
+ <Sky distance={450000} sunPosition={[0, 1, 0]} inclination={0} azimuth={0.25} />
<Environment background preset="warehouse" />
<Help />
</Canvas>
--
Gitblit v1.9.1