From bec07969f9beb4e0a864c88089949b8de1831f6b Mon Sep 17 00:00:00 2001 From: adrien Date: Wed, 31 May 2023 02:01:08 +0200 Subject: [PATCH] tweak sunLight --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index a12ba43..2088c5a 100644 --- a/main.js +++ b/main.js @@ -218,7 +218,7 @@ scene.add( ambientLight ); const sunLight = new THREE.DirectionalLight( 0xffffff, 0.3 ); sunLight.castShadow = true; sunLight.shadow.camera.near = 0.1; -sunLight.shadow.camera.far = 50; +sunLight.shadow.camera.far = 500; sunLight.shadow.camera.right = 30; sunLight.shadow.camera.left = - 30; sunLight.shadow.camera.top = 30; @@ -302,7 +302,7 @@ function updateSun() { if ( elevation >= 0 ) { sunLight.visible = true - sunLight.position.setFromSphericalCoords(10, phi, theta) + sunLight.position.setFromSphericalCoords(100, phi, theta) sunLight.position.x += mazeLength/2 sunLight.position.z += mazeWidth/2 @@ -445,7 +445,7 @@ function playerCollisions() { if ( !escaped && raftOctree.capsuleIntersect( playerCollider ) ) { escaped = true; - alert("Congrats! You escaped."); + alert("Congrats! You finally escaped."); }