From fecbe506cf226f8910da00c4f4ae5cdc87759c79 Mon Sep 17 00:00:00 2001 From: oli Date: Tue, 2 Apr 2024 11:57:52 +0200 Subject: [PATCH] Added pointLight intensity pointLight was too weak on some newer versions of three.js (0.163.0). See: https://stackoverflow.com/questions/77625732/threejs-pointlight-not-lighting-up-my-geometries --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 26e5545..51037f1 100644 --- a/main.js +++ b/main.js @@ -29,7 +29,7 @@ scene.add(torus); // Lights -const pointLight = new THREE.PointLight(0xffffff); +const pointLight = new THREE.PointLight(0xffffff, 100); pointLight.position.set(5, 5, 5); const ambientLight = new THREE.AmbientLight(0xffffff);