This commit is contained in:
Kseninia Mikhaylova 2024-06-14 12:47:24 +03:00
parent 755077a3e1
commit 3eaf085b80
1 changed files with 1 additions and 4 deletions

View File

@ -124,9 +124,6 @@ onMounted(() => {
const pointLight = light.children[2]
pointLight.color = '#f0dea9'
pointLight.shadow.camera.near = 50
const k = 1
pointLight.shadow.mapSize.width = 512 * k
pointLight.shadow.mapSize.height = 512 * k
pointLight.shadow.bias = -0.001
</script>
<template>
@ -152,7 +149,7 @@ pointLight.shadow.bias = -0.001
<TresMeshStandardMaterial :map="texture_one" />
</TresMesh>
<TresPointLight v-bind="pointLight" :intensity="pointLight.intensity * 0.25"
<TresPointLight v-bind="pointLight" :intensity="pointLight.intensity * 0.5"
:position="Object.values(pointLight.position).map((el: any) => el * 3)" cast-shadow />
<TresAmbientLight color="rgb(191,231,255)" :intensity="5" />