diff --git a/components/calc/models.vue b/components/calc/models.vue index 1e62429..6d34d93 100644 --- a/components/calc/models.vue +++ b/components/calc/models.vue @@ -27,21 +27,18 @@ const cameraStat = reactive({ - + - - - - + \ No newline at end of file diff --git a/components/expDiagram.vue b/components/expDiagram.vue index 358cf2a..e303764 100644 --- a/components/expDiagram.vue +++ b/components/expDiagram.vue @@ -17,22 +17,6 @@ const explosion_state = use_explosion_state() const toggleExpState = () => { explosion_state.value = !explosion_state.value } -const back_light = ref() -const secondary_light = ref() -const loadAll = async () => { - const { scene: back } = await useGLTF('/models_light/back_exp.glb') - const { scene: secondary } = await useGLTF('/models_light/secondary_exp.glb') - - const k = 0.03 - - back_light.value = back.children[0] - back_light.value.intensity = back_light.value.intensity * k - back_light.value.shadow.bias = -0.02 - - secondary_light.value = secondary.children[0] - secondary_light.value.intensity = secondary_light.value.intensity * k - secondary_light.value.shadow.bias = -0.01 -} const changeDistance = (v = 1) => { if (camera.value && controls.value) { @@ -41,9 +25,6 @@ const changeDistance = (v = 1) => { camera.value.position.normalize().multiplyScalar(r) } } -onMounted(() => { - loadAll() -}) @@ -53,14 +34,11 @@ onMounted(() => { Загрузка 3D модели - + - - - - - + +