shadow bias
This commit is contained in:
parent
84a59073fe
commit
770fbc9335
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue