From d012c80a575841693a4ee4cd53cdcdaa7355effa Mon Sep 17 00:00:00 2001 From: adrien Date: Sat, 3 Jun 2023 19:49:29 +0200 Subject: [PATCH] no torchLight shadow --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index e00bddf..9643fd2 100644 --- a/main.js +++ b/main.js @@ -139,12 +139,12 @@ sunLight.shadow.camera.top = 10; sunLight.shadow.camera.bottom = -10; sunLight.shadow.mapSize.width = 4096; sunLight.shadow.mapSize.height = 4096; -sunLight.shadow.radius = 4; +sunLight.shadow.radius = 6; sunLight.target = camera scene.add( sunLight ); const torchLight = new THREE.SpotLight(0xffffe8, 1, mazeLength/2, .45, 1) -torchLight.castShadow = true; +/*torchLight.castShadow = true; torchLight.shadow.camera.near = 20; torchLight.shadow.camera.far = 200; torchLight.shadow.camera.right = 30; @@ -152,7 +152,7 @@ torchLight.shadow.camera.left = -30; torchLight.shadow.camera.top = 30; torchLight.shadow.camera.bottom = -30; torchLight.shadow.mapSize.width = 512; -torchLight.shadow.mapSize.height = 512; +torchLight.shadow.mapSize.height = 512;*/ scene.add( torchLight ); scene.add( torchLight.target );