Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
✨ Reworked fog in encom_globe / mod_locationGlobe
Browse files Browse the repository at this point in the history
  • Loading branch information
GitSquared committed Aug 11, 2018
1 parent f3023bf commit 93ef743
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/assets/vendor/encom-globe.js
Original file line number Diff line number Diff line change
Expand Up @@ -42044,18 +42044,18 @@ function Globe(width, height, opts){

/* public globe functions */

Globe.prototype.init = function(cb){
Globe.prototype.init = function(fog_color, cb){

// create the camera
this.camera = new THREE.PerspectiveCamera( 50, this.width / this.height, 1, this.cameraDistance + 300 );
this.camera = new THREE.PerspectiveCamera( 50, this.width / this.height, 1, this.cameraDistance + 900 );
this.camera.position.z = this.cameraDistance;

this.cameraAngle=(Math.PI);

// create the scene
this.scene = new THREE.Scene();

this.scene.fog = new THREE.Fog( 0x000000, this.cameraDistance, this.cameraDistance+300 );
this.scene.fog = new THREE.Fog( new THREE.Color(fog_color || 0x000000), this.cameraDistance, this.cameraDistance+300 );

createIntroLines.call(this);

Expand Down
2 changes: 1 addition & 1 deletion src/classes/locationGlobe.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class LocationGlobe {
requestAnimationFrame(window.mods.globe._animate);
}
};
this.globe.init(() => {
this.globe.init(window.theme.colors.light_black, () => {
this._animate();
});

Expand Down

0 comments on commit 93ef743

Please sign in to comment.