Skip to content

Instantly share code, notes, and snippets.

@patkap1994
Created May 19, 2022
Embed
What would you like to do?
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