Skip to content

Commit

Permalink
using 4k textures for the earth
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmas committed Nov 14, 2023
1 parent 6eb8e8f commit f928153
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
Binary file added public/images/8081_earthbump4k.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/8081_earthlights4k.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/8081_earthmap4k.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/8081_earthspec4k.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions src/viewer/earth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ class Earth implements SceneComponent {


init (scene: SatelliteOrbitScene) {
const dayTexture = new THREE.TextureLoader().load(`${this.basePath}/earth-blue-marble.jpg`);
const nightTexture = new THREE.TextureLoader().load(`${this.basePath}/nightearth-4096.png`);
const bumpTexture = new THREE.TextureLoader().load(`${this.basePath}/earth-topology.png`);

const earthSpecularMap = new THREE.TextureLoader().load(`${this.basePath}/earth-water.png`);
const dayTexture = new THREE.TextureLoader().load(`${this.basePath}/8081_earthmap4k.jpg`);
const nightTexture = new THREE.TextureLoader().load(`${this.basePath}/8081_earthlights4k.jpg`);
const bumpTexture = new THREE.TextureLoader().load(`${this.basePath}/8081_earthbump4k.jpg`);
const earthSpecularMap = new THREE.TextureLoader().load(`${this.basePath}/8081_earthspec4k.jpg`);

const dayMaterial = new THREE.MeshPhongMaterial({
map: dayTexture,
Expand Down

0 comments on commit f928153

Please sign in to comment.