From 9ffa3ce5dbaa6d2f365adcfbffeb8a4f3d3d39a6 Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Fri, 28 Jun 2024 11:50:11 +0300 Subject: [PATCH] fps fence --- components/model/fence.vue | 39 +++++++++----------------------------- 1 file changed, 9 insertions(+), 30 deletions(-) diff --git a/components/model/fence.vue b/components/model/fence.vue index 4f3502f..a8dc6e9 100644 --- a/components/model/fence.vue +++ b/components/model/fence.vue @@ -58,12 +58,13 @@ watch([instanced_lamelle, fence_section, extra_section, lamelles_count], (mesh) instanced_lamelle.value.setMatrixAt(i, newmatrix); if (i >= lamelles_count.value) { - instanced_lamelle.value.setMatrixAt(i, new Matrix4().makeTranslation(new Vector3(0,0,-2))); + instanced_lamelle.value.setMatrixAt(i, new Matrix4().makeTranslation(new Vector3(0, 2, 2))); } } instanced_lamelle.value.instanceMatrix.needsUpdate = true } }); + watch([section_count, fence_section, extra_section], () => { extra.value = (extra_section.value && props.index == (section_count.value + 1)) ? extra_section.value * 0.001 : false if (extra_section && props.index == (section_count.value + 1)) { @@ -80,16 +81,13 @@ watch([section_count, fence_section, extra_section], () => {