aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <silas@exvacuum.dev>2025-02-12 21:21:29 -0500
committerLibravatar Silas Bartha <silas@exvacuum.dev>2025-02-12 21:21:29 -0500
commitf71056b9b42174fbc2668bac5ca362bc459a8e28 (patch)
tree503db9f197213b00ba9f128838613d0a840ce0a7 /src/components
parent462399de435c01ad342fe95a1f741920cbe488b0 (diff)
server-side message position validation with o3dHEADmaster
Diffstat (limited to 'src/components')
-rw-r--r--src/components/ground.jsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/ground.jsx b/src/components/ground.jsx
index 9aced45..2426f2a 100644
--- a/src/components/ground.jsx
+++ b/src/components/ground.jsx
@@ -5,14 +5,15 @@ import { useGLTF } from '@react-three/drei';
import terrainModelURL from '../assets/terrain.glb';
export default function Ground() {
- const meshRef = useRef();
- const { nodes } = useGLTF(terrainModelURL);
-
+ const { nodes, materials } = useGLTF(terrainModelURL);
return (
<RigidBody type='fixed' colliders="trimesh">
- <mesh ref={meshRef} position={[0, 0, 0]} rotation={[-Math.PI / 2, 0, 0]} geometry={nodes.Plane.geometry} name='ground'>
+ <mesh position={[0, 0, 0]} geometry={nodes.ground.geometry} name='ground'>
<meshStandardMaterial color={everforest.yellow}/>
</mesh>
+ <mesh geometry={nodes.pyramid.geometry} name='ground'>
+ <meshStandardMaterial color={everforest.bg2}/>
+ </mesh>
</RigidBody>
);
}