aboutsummaryrefslogtreecommitdiff
path: root/src/components/ground.jsx
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <silas@exvacuum.dev>2025-02-11 23:14:22 -0500
committerLibravatar Silas Bartha <silas@exvacuum.dev>2025-02-11 23:14:22 -0500
commitacf41b45c3345dd8fa12e013b313afdfb0138a6d (patch)
treee5dc92b8e70b36994300a80ed92b9586a5eec453 /src/components/ground.jsx
parentb9509422dd5f4c97d5c0746229037a53712ac7fe (diff)
properly import assets
Diffstat (limited to 'src/components/ground.jsx')
-rw-r--r--src/components/ground.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/ground.jsx b/src/components/ground.jsx
index cc128de..c83aad8 100644
--- a/src/components/ground.jsx
+++ b/src/components/ground.jsx
@@ -1,11 +1,12 @@
import { useRef } from 'react';
+import terrainModelURL from '../../assets/terrain.glb'
import * as everforest from '../_everforest.module.scss'
import { RigidBody } from '@react-three/rapier';
import { useGLTF } from '@react-three/drei';
export default function Ground() {
const meshRef = useRef();
- const { nodes } = useGLTF('../assets/terrain.glb');
+ const { nodes } = useGLTF(terrainModelURL);
return (
<RigidBody type='fixed' colliders="trimesh">