transparent

This commit is contained in:
aarizona 2024-08-29 12:32:20 +03:00
parent 7616f6ee89
commit 3b0e66208c
2 changed files with 3 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

@ -192,23 +192,16 @@ const loadModels = async () => {
const point_mesh = new Mesh(
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({
color: new Color(envVars.clear_color),
side: DoubleSide,
polygonOffset: true, polygonOffsetFactor: -4,
// polygonOffsetUnits: 0.1
map: pointerTexture.map,
transparent: true,
})
)
point_mesh2.rotateX(-0.5 * Math.PI)
point_mesh.rotateX(-0.5 * Math.PI)
const point = new Group()
point.add(point_mesh)
point.add(point_mesh2)
point.position.set(world_position.x, p * 3, world_position.z * 2)
point.name = `${element.id}_clickable`
@ -312,7 +305,6 @@ onAfterRender(() => {
clickable_refs.value.map(el => {
if (el.value[0] && el.value[0].children) {
el.value[0].children[0].lookAt(camera.value?.position)
el.value[0].children[1].lookAt(camera.value?.position)
}
})
if (controls.value) {