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 4 additions and 3 deletions
Showing only changes of commit a3a5868979 - Show all commits

View File

@ -182,13 +182,14 @@ const loadModels = async () => {
const point = point_mesh_obj.clone()
const point_color = new Color(envVars.clear_color).offsetHSL(0.45, 0.2, 0)
// console.log(point_color)
point.traverse((el: Group | Mesh) => {
if (el instanceof Mesh && el.material && el.material instanceof MeshStandardMaterial) {
el.position.set(0, 0, 0)
el.material.color = point_color
}
})
point.position.set(world_position.x, size.y, world_position.z)
point.position.set(world_position.x, world_position.y, world_position.z)
console.log(world_position)
point.updateMatrixWorld()
point.name = `${element.id}_clickable`