/** * Implentation of the mars. * Texture from https://www.solarsystemscope.com/textures/1 */ import * as THREE from '/website/node_modules/three/build/three.module.js'; const marsTexture = new THREE.TextureLoader().load('/website/mars/mars.jpg'); const marsSphere = new THREE.SphereGeometry(10, 32, 16); const material = new THREE.MeshStandardMaterial({ map: marsTexture }); export const mars = new THREE.Mesh( marsSphere, material ); mars.position.x = 130; export function rotation(){ mars.rotation.x -= 0.01; mars.rotation.y -= 0.01; mars.rotation.z -= 0.01; }