Merge pull request 'bx-1480-constructor' (#64) from bx-1480-constructor into dev #65

Merged
ksenia_mikhailova merged 2 commits from dev into bx-1480-constructor 2024-09-17 10:47:47 +03:00
2 changed files with 6 additions and 1 deletions
Showing only changes of commit 653f46ea51 - Show all commits

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) => {