sunLight position

This commit is contained in:
Adrien MALINGREY 2023-06-06 16:54:54 +02:00
parent 74c466cf8d
commit d48500919a

View File

@ -613,9 +613,7 @@ function animate() {
if ( sunLight.visible ) { if ( sunLight.visible ) {
sunLight.position.copy( sun ) sunLight.position.copy( sun ).add( camera.position )
sunLight.position.x += camera.position.x
sunLight.position.z += camera.position.z
} }