Skip to content

Instantly share code, notes, and snippets.

@marshallmurphy
Created July 28, 2020 23:48
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 marshallmurphy/2ce0a653770071e019ec0f527a4ae032 to your computer and use it in GitHub Desktop.
Save marshallmurphy/2ce0a653770071e019ec0f527a4ae032 to your computer and use it in GitHub Desktop.
//...
return {
render({ time }) {
mercuryGroup.rotation.y = time * 0.5; // rotate around the sun
mercuryMesh.rotation.y = time * 0.20; // rotate the planet
controls.update();
renderer.render(scene, camera);
},
//...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment