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

@ -181,14 +181,15 @@ const loadModels = async () => {
(find_element as Mesh).localToWorld(world_position); (find_element as Mesh).localToWorld(world_position);
const point = point_mesh_obj.clone() const point = point_mesh_obj.clone()
const point_color = new Color(envVars.clear_color).offsetHSL(0.45, 0.2, 0) const point_color = new Color(envVars.clear_color).offsetHSL(0.45, 0.2, 0)
// console.log(point_color)
point.traverse((el: Group | Mesh) => { point.traverse((el: Group | Mesh) => {
if (el instanceof Mesh && el.material && el.material instanceof MeshStandardMaterial) { if (el instanceof Mesh && el.material && el.material instanceof MeshStandardMaterial) {
el.position.set(0, 0, 0)
el.material.color = point_color 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.updateMatrixWorld()
point.name = `${element.id}_clickable` point.name = `${element.id}_clickable`