Created
July 28, 2020 23:48
-
-
Save marshallmurphy/2ce0a653770071e019ec0f527a4ae032 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//... | |
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