Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const material = new THREE.MeshBasicMaterial()
material.color = new THREE.Color(0xff0000)

// Mesh
const sphere = new THREE.Mesh(geometry,material)
scene.add(sphere)
const torus = new THREE.Mesh(geometry,material)
scene.add(torus)

// Lights

Expand Down Expand Up @@ -90,7 +90,7 @@ const tick = () =>
const elapsedTime = clock.getElapsedTime()

// Update objects
sphere.rotation.y = .5 * elapsedTime
torus.rotation.y = .5 * elapsedTime

// Update Orbital Controls
// controls.update()
Expand All @@ -102,4 +102,4 @@ const tick = () =>
window.requestAnimationFrame(tick)
}

tick()
tick()