This commit is contained in:
Kseninia Mikhaylova 2024-09-17 10:46:59 +03:00
parent cbe97f5d8a
commit f022fab129
2 changed files with 6 additions and 1 deletions

View File

@ -45,6 +45,7 @@ export default defineNuxtConfig({
vite: {
assetsInclude: ['**/*.glb', '**/*.gltf'],
build: {
target: 'esnext'
// minify: 'esbuild'
// minify: false
},

View File

@ -12,7 +12,11 @@ const set_metaril_func = (scene: any, material: any) => {
})
}
// const texture = await useLoader(TextureLoader, '/fence_one/svg_tile1.svg');
const texture = await useLoader(TextureLoader, '/fence_one/tile1.png');
const get_texture = async () => {
const texture = await useLoader(TextureLoader, '/fence_one/tile1.png');
return texture
}
const texture = await get_texture()
texture.wrapT = RepeatWrapping;
export const set_material = (scene: any, color: any, count: number | undefined = undefined) => {