Dies ist das Repository meines kleinen Portfolios. Im Hintergrund läuft eine Planetensimulation, geschrieben in JavaScript und Three.js. Die zu sehenden Texturen stammen von: https://www.solarsystemscope.com/textures/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
594 B

/**
* 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(10, 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;
}