From ee22562c8e49fc42fdfc6d513c92a7c7f580c057 Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Wed, 12 Feb 2025 00:44:55 -0500 Subject: finally fixed stupid preload issue lol --- src/components/ground.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/components/ground.jsx') diff --git a/src/components/ground.jsx b/src/components/ground.jsx index 9aa736d..9aced45 100644 --- a/src/components/ground.jsx +++ b/src/components/ground.jsx @@ -2,8 +2,7 @@ import { useRef } from 'react'; import * as everforest from '../_everforest.module.scss' import { RigidBody } from '@react-three/rapier'; import { useGLTF } from '@react-three/drei'; - -const terrainModelURL = new URL('../assets/terrain.glb', import.meta.url).href +import terrainModelURL from '../assets/terrain.glb'; export default function Ground() { const meshRef = useRef(); -- cgit v1.2.3