bx-1379-redesign #15

Merged
ksenia_mikhailova merged 124 commits from bx-1379-redesign into dev 2024-09-06 15:39:13 +03:00
1 changed files with 7 additions and 0 deletions
Showing only changes of commit 5d903de526 - Show all commits

View File

@ -7,6 +7,7 @@ import {
CircleGeometry, MeshBasicMaterial,
Quaternion, AdditiveBlending,
Euler,
SRGBColorSpace,
} from 'three';
import { useTresContext, useSeek, useTexture, useLoop } from '@tresjs/core';
@ -143,6 +144,12 @@ const loadModels = async () => {
)
item.modelFile.children[0].updateMatrixWorld(true)
}
item.modelFile.traverse((el: Mesh) => {
if (el.material && el.material.texture) {
el.material.texture.colorSpace = SRGBColorSpace
}
})
models.value.push(item)
const res = await fetch(`${SERVER_URL}/api/obj/clickable/?source=${element.id}`)