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