Skip to content

Instantly share code, notes, and snippets.

@patkap1994
Created May 19, 2022 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patkap1994/60e4a8d6bdc47e6e962e683eb2e68880 to your computer and use it in GitHub Desktop.
Save patkap1994/60e4a8d6bdc47e6e962e683eb2e68880 to your computer and use it in GitHub Desktop.
function animate() {
mesh.rotation.x += 0.003
mesh.rotation.y += 0.004
mesh.rotation.z += 0.005
renderer.render(scene, camera)
window.requestAnimationFrame(animate)
}
animate()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment