Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
loco-coder authored Oct 31, 2024
1 parent 5c3023a commit 80e810c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const renderer = new THREE.WebGLRenderer({
});

// Set up the camera controls
const controls = new THREE.OrbitControls(camera, renderer.domElement);
controls = new THREE.OrbitControls(camera, renderer.domElement);
const OrbitControls = THREE['OrbitControls'];
const controls = new OrbitControls(camera, renderer.domElement);
// Add some basic lighting
const ambientLight = new THREE.AmbientLight(0x444444);
scene.add(ambientLight);
Expand Down

0 comments on commit 80e810c

Please sign in to comment.