bx-1379-redesign #15
|
@ -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`
|
||||||
|
|
Loading…
Reference in New Issue