From d9a0714de610b8a85ebe9d05c12d575f81bab691 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 08 五月 2024 15:13:19 +0800
Subject: [PATCH] #
---
src/components/area.jsx | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/src/components/area.jsx b/src/components/area.jsx
index 59b08ec..887d07e 100644
--- a/src/components/area.jsx
+++ b/src/components/area.jsx
@@ -11,7 +11,7 @@
const position = new THREE.Vector3(x + width / 2, Y, y + height / 2);
const size = [width, 1, height];
- textHeight ||= Y + 50;
+ // textHeight ||= Y + 50;
useFrame(() => {
const box = meshRef.current;
@@ -41,8 +41,6 @@
<Text
position={new THREE.Vector3(position.x, textHeight, position.z)}
text={textContent}
- scale={new THREE.Vector3(100, 100, 100)}
- fontSize={100}
/>
)}
</group>
--
Gitblit v1.9.1