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 9 additions and 1 deletions
Showing only changes of commit 8f164cdbae - Show all commits

View File

@ -193,7 +193,7 @@ const loadModels = async () => {
const p = raw_data.min_distance * 0.05
const point_mesh = new Mesh(
new CircleGeometry(p, 32),
new CircleGeometry(2, 32),
new MeshBasicMaterial({
color: new Color(envVars.clear_color),
map: pointerTexture.map,
@ -308,6 +308,14 @@ onAfterRender(() => {
clickable_refs.value.map(el => {
if (el.value[0] && el.value[0].children) {
el.value[0].children[0].lookAt(camera.value?.position)
const dis_to_cam = camera.value?.position.distanceTo(el.value[0].position);
if (dis_to_cam) {
// console.log(dis_to_cam)
const scaling = (1 * dis_to_cam) / 100
el.value[0].children[0].scale.set(scaling, scaling, scaling);
el.value[0].updateMatrixWorld()
}
}
})
if (controls.value) {