polar angle

This commit is contained in:
Kseninia Mikhaylova 2024-07-26 13:47:44 +03:00
parent 34029ba1b4
commit 8f92163cf0
2 changed files with 4 additions and 3 deletions

View File

@ -190,7 +190,8 @@ const ground = reactive({
color: props.clearColor,
displacementMap: groundTexture.displacementMap,
displacementScale: 50,
roughness: 100
roughness: 100,
side: DoubleSide
})
watch(() => sidebar_scene.list, () => {
sidebar_scene.list.forEach(element => {
@ -214,7 +215,7 @@ watch(() => sidebar_scene.list, () => {
<template v-for="(item, i) in clickable_items">
<TresMesh v-bind="item" :ref="clickable_refs[i]" />
</template>
<TresMesh :position-y="-0.25 * ground.displacementScale" :rotate-x="-Math.PI / 2" receive-shadow>
<TresMesh :position-y="-0.33 * ground.displacementScale" :rotate-x="-Math.PI / 2" receive-shadow>
<TresCircleGeometry :args="[tiltShift.focus * 100, tiltShift.focus * 100]" />
<TresMeshStandardMaterial v-bind="ground" />
</TresMesh>

View File

@ -35,7 +35,7 @@ const cameraPosition = ref([1, 1, 1]) as unknown as Ref<Vector3>
const controlsState = reactive({
enableDamping: false,
maxPolarAngle: (Math.PI / 2) - 0.07,
minAzimuthAngle: (Math.PI / 2) - 0.07,
minAzimuthAngle: (Math.PI / 2) - 0.20,
})
const models_loading = ref(true)
const set_model_load_status = (status: boolean) => {