From 767a63854eb530f6fe0975cea9945440736b97bc Mon Sep 17 00:00:00 2001 From: Jonathan Rodriguez Date: Thu, 31 Oct 2024 15:18:52 -0300 Subject: [PATCH] Update script.js --- script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index 782dce2..5da6bc1 100644 --- a/script.js +++ b/script.js @@ -7,8 +7,8 @@ const renderer = new THREE.WebGLRenderer({ }); // Set up the camera controls -const OrbitControls = THREE['OrbitControls']; -const controls = new OrbitControls(camera, renderer.domElement); +const controls = new THREE.OrbitControls(camera, renderer.domElement); + // Add some basic lighting const ambientLight = new THREE.AmbientLight(0x444444); scene.add(ambientLight);