shadow bias

This commit is contained in:
Kseninia Mikhaylova 2024-07-12 15:49:18 +03:00
parent 84a59073fe
commit 770fbc9335
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,9 @@ function shadows_and_pos(scene: any) {
scene.children.forEach((el: any) => {
el.receiveShadow = true
el.castShadow = true
if(el.isPointLight) {
el.shadow.bias = -0.01
}
shadows_and_pos(el)
})
}