aboutsummaryrefslogtreecommitdiff
path: root/src/App.jsx
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <silas@exvacuum.dev>2025-02-12 00:44:55 -0500
committerLibravatar Silas Bartha <silas@exvacuum.dev>2025-02-12 00:44:55 -0500
commitee22562c8e49fc42fdfc6d513c92a7c7f580c057 (patch)
treef0ee33773461675fec1632a48c941f4951c0941d /src/App.jsx
parentd447b608f8998df5e044c40b45109ff6094ef173 (diff)
finally fixed stupid preload issue lol
Diffstat (limited to 'src/App.jsx')
-rw-r--r--src/App.jsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/App.jsx b/src/App.jsx
index 81cd893..e154f5b 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -7,9 +7,9 @@ import React, { Suspense, useContext, useEffect, useRef, useState } from 'react'
import { Physics } from '@react-three/rapier';
import Sun from './components/sun';
import * as everforest from './_everforest.module.scss'
-import { Bloom, EffectComposer, GodRays, LensFlare, Noise, Vignette } from '@react-three/postprocessing';
-import { AdditiveBlending } from 'three';
import { useGLTF } from '@react-three/drei';
+import terrainModelURL from './assets/terrain.glb';
+import messageBubbleModelURL from './assets/message-bubble.glb';
export const AppContext = React.createContext(null);
@@ -55,8 +55,8 @@ function App() {
setMessages(data);
});
},[]);
- useGLTF.preload('../assets/terrain.glb');
- useGLTF.preload('../assets/message-bubble.glb');
+ useGLTF.preload(terrainModelURL);
+ useGLTF.preload(messageBubbleModelURL);
return (
<>
<div className='dot' />