From 4cb8a1f7eec739c77ff4794f09000790fc1a11dd Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 11 六月 2024 14:38:30 +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