File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1717 import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader" ;
1818 import Stats from "three/examples/jsm/libs/stats.module" ;
1919 import { KdTree } from '@sadyx019/kd-tree' ;
20+ import modelUrl from "@/assets/models/Soldier.glb" ;
2021
2122 let screenWidth = window . innerWidth ;
2223 let screenHeight = window . innerHeight ;
273274
274275 const loader = new GLTFLoader ( ) ;
275276 loader . load (
276- '../assets/models/Soldier.glb' ,
277+ modelUrl ,
277278 ( gltf ) => {
278- console . log ( gltf ) ;
279279 modelMesh = gltf . scene ;
280280 scene . add ( modelMesh ) ;
281281
Original file line number Diff line number Diff line change @@ -34,5 +34,6 @@ export default defineConfig({
3434 alias : {
3535 '@' : resolve ( __dirname , "src" ) ,
3636 }
37- }
37+ } ,
38+ assetsInclude : [ '**/*.glb' ]
3839} ) ;
You can’t perform that action at this time.
0 commit comments