diff options
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"> |