dev #43

Merged
ksenia_mikhailova merged 41 commits from dev into main 2024-07-24 14:22:29 +03:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit 0b1f8147d4 - Show all commits

View File

@ -23,7 +23,6 @@ const cameraStat = reactive({
})
const pointLight = ref()
const pointLight2 = ref()
const loadAll = async () => {
const { scene: light } = await useGLTF('/models_light/zabor_so_svetom.glb')
pointLight.value = light.children[2]
@ -35,7 +34,7 @@ const loadAll = async () => {
pointLight.value.shadow.mapSize.x = 512 * j
pointLight.value.shadow.mapSize.y = 512 * j
const k = 5
const k = 3
pointLight.value.position.x = pointLight.value.position.x * k
pointLight.value.position.y = pointLight.value.position.y * k
pointLight.value.position.z = pointLight.value.position.z * k

View File

@ -63,7 +63,7 @@ onMounted(() => {
Загрузка 3D модели
</div>
</template>
<TresCanvas height="600" preset="realistic" render-mode="on-demand">
<TresCanvas height="600" preset="realistic">
<TresPerspectiveCamera :position="[-7, 2, 4]" ref="camera" />
<OrbitControls v-bind="controlsState" ref="controls" make-default />
<Suspense>