diff options
author | 2025-02-11 23:14:22 -0500 | |
---|---|---|
committer | 2025-02-11 23:14:22 -0500 | |
commit | acf41b45c3345dd8fa12e013b313afdfb0138a6d (patch) | |
tree | e5dc92b8e70b36994300a80ed92b9586a5eec453 /src/components/ground.jsx | |
parent | b9509422dd5f4c97d5c0746229037a53712ac7fe (diff) |
properly import assets
Diffstat (limited to 'src/components/ground.jsx')
-rw-r--r-- | src/components/ground.jsx | 3 |
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"> |