Skip to content

Instantly share code, notes, and snippets.

@peyloride
Created March 8, 2019 08:41
Show Gist options
  • Save peyloride/bc8d639dfe74a0fd4790f24d1434119d to your computer and use it in GitHub Desktop.
Save peyloride/bc8d639dfe74a0fd4790f24d1434119d to your computer and use it in GitHub Desktop.
function update () {
// Draw!
renderer.render(scene, camera);
sphere.rotation.y += 0.01
sphere.rotation.z += 0.01
// Schedule the next frame.
requestAnimationFrame(update);
}
// Schedule the first frame.
requestAnimationFrame(update);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment