diff --git a/earth/earth.js b/earth/earth.js index bf86db6..a99b5f5 100644 --- a/earth/earth.js +++ b/earth/earth.js @@ -6,23 +6,20 @@ import * as THREE from '/website/node_modules/three/build/three.module.js'; -const pi = 3; const earthTexture = new THREE.TextureLoader().load('/website/earth/earth.jpg'); -const earthSphere = new THREE.SphereGeometry(7, 32, 16); +const earthSphere = new THREE.SphereGeometry(10, 32, 16); const material = new THREE.MeshStandardMaterial({ map: earthTexture }); export const earth = new THREE.Mesh( earthSphere, material ); export const pivot = new THREE.Object3D(); earth.add(pivot); -earth.position.x = -60; +earth.position.x = 100; var forward = true; export function rotation(){ earth.rotation.y += 0.01; - pivot.rotation.x += 0.01; - //pivot.rotation.y += 0.005; - //pivot.rotation.z += 0.01; + pivot.rotation.x -= 0.025; } diff --git a/index.html b/index.html index 5970503..994734c 100644 --- a/index.html +++ b/index.html @@ -3,11 +3,11 @@