bx-1379-redesign #15
Binary file not shown.
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 5.8 KiB |
|
@ -192,23 +192,16 @@ const loadModels = async () => {
|
||||||
|
|
||||||
const point_mesh = new Mesh(
|
const point_mesh = new Mesh(
|
||||||
new CircleGeometry(p, 32),
|
new CircleGeometry(p, 32),
|
||||||
new MeshBasicMaterial({ color: new Color('#FFF'), side: DoubleSide })
|
|
||||||
)
|
|
||||||
point_mesh.rotateX(-0.5 * Math.PI)
|
|
||||||
const point_mesh2 = new Mesh(
|
|
||||||
new RingGeometry(p * 0.33, p * 0.66, 32),
|
|
||||||
new MeshBasicMaterial({
|
new MeshBasicMaterial({
|
||||||
color: new Color(envVars.clear_color),
|
color: new Color(envVars.clear_color),
|
||||||
side: DoubleSide,
|
map: pointerTexture.map,
|
||||||
polygonOffset: true, polygonOffsetFactor: -4,
|
transparent: true,
|
||||||
// polygonOffsetUnits: 0.1
|
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
point_mesh2.rotateX(-0.5 * Math.PI)
|
point_mesh.rotateX(-0.5 * Math.PI)
|
||||||
|
|
||||||
const point = new Group()
|
const point = new Group()
|
||||||
point.add(point_mesh)
|
point.add(point_mesh)
|
||||||
point.add(point_mesh2)
|
|
||||||
|
|
||||||
point.position.set(world_position.x, p * 3, world_position.z * 2)
|
point.position.set(world_position.x, p * 3, world_position.z * 2)
|
||||||
point.name = `${element.id}_clickable`
|
point.name = `${element.id}_clickable`
|
||||||
|
@ -312,7 +305,6 @@ onAfterRender(() => {
|
||||||
clickable_refs.value.map(el => {
|
clickable_refs.value.map(el => {
|
||||||
if (el.value[0] && el.value[0].children) {
|
if (el.value[0] && el.value[0].children) {
|
||||||
el.value[0].children[0].lookAt(camera.value?.position)
|
el.value[0].children[0].lookAt(camera.value?.position)
|
||||||
el.value[0].children[1].lookAt(camera.value?.position)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (controls.value) {
|
if (controls.value) {
|
||||||
|
|
Loading…
Reference in New Issue