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 8b97c27 commit a6c6a3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const renderer = new THREE.WebGLRenderer({

// Set up the camera controls
const controls = new THREE.OrbitControls(camera, renderer.domElement);

const OrbitControls = THREE.OrbitControls;
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 a6c6a3f

Please sign in to comment.