//...
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);
},
//...
view raw block10.js hosted with ❤ by GitHub