kopia lustrzana https://github.com/robhawkes/vizicities
				
				
				
			Updated dimensions
							rodzic
							
								
									5743b95a25
								
							
						
					
					
						commit
						c41818b6cd
					
				|  | @ -3362,7 +3362,7 @@ return /******/ (function(modules) { // webpackBootstrap | ||||||
| 	// http://stackoverflow.com/q/26655930/997339
 | 	// http://stackoverflow.com/q/26655930/997339
 | ||||||
| 	 | 	 | ||||||
| 	exports['default'] = function (container) { | 	exports['default'] = function (container) { | ||||||
| 	  var camera = new _three2['default'].PerspectiveCamera(45, 1, 1, 200000); | 	  var camera = new _three2['default'].PerspectiveCamera(45, 1, 1, 2000000); | ||||||
| 	  camera.position.y = 4000; | 	  camera.position.y = 4000; | ||||||
| 	  camera.position.z = 4000; | 	  camera.position.z = 4000; | ||||||
| 	 | 	 | ||||||
|  | @ -4813,7 +4813,7 @@ return /******/ (function(modules) { // webpackBootstrap | ||||||
| 	    key: '_initSkybox', | 	    key: '_initSkybox', | ||||||
| 	    value: function _initSkybox() { | 	    value: function _initSkybox() { | ||||||
| 	      // Cube camera for skybox
 | 	      // Cube camera for skybox
 | ||||||
| 	      this._cubeCamera = new _three2['default'].CubeCamera(1, 2000000, 128); | 	      this._cubeCamera = new _three2['default'].CubeCamera(1, 20000000, 128); | ||||||
| 	 | 	 | ||||||
| 	      // Cube material
 | 	      // Cube material
 | ||||||
| 	      var cubeTarget = this._cubeCamera.renderTarget; | 	      var cubeTarget = this._cubeCamera.renderTarget; | ||||||
|  | @ -4842,7 +4842,7 @@ return /******/ (function(modules) { // webpackBootstrap | ||||||
| 	        side: _three2['default'].BackSide | 	        side: _three2['default'].BackSide | ||||||
| 	      }); | 	      }); | ||||||
| 	 | 	 | ||||||
| 	      this._mesh = new _three2['default'].Mesh(new _three2['default'].BoxGeometry(190000, 190000, 190000), skyboxMat); | 	      this._mesh = new _three2['default'].Mesh(new _three2['default'].BoxGeometry(1900000, 1900000, 1900000), skyboxMat); | ||||||
| 	 | 	 | ||||||
| 	      this._updateSkybox = true; | 	      this._updateSkybox = true; | ||||||
| 	    } | 	    } | ||||||
|  | @ -9842,7 +9842,7 @@ return /******/ (function(modules) { // webpackBootstrap | ||||||
| 	    _classCallCheck(this, ImageTileLayer); | 	    _classCallCheck(this, ImageTileLayer); | ||||||
| 	 | 	 | ||||||
| 	    var defaults = { | 	    var defaults = { | ||||||
| 	      distance: 200000 | 	      distance: 300000 | ||||||
| 	    }; | 	    }; | ||||||
| 	 | 	 | ||||||
| 	    options = (0, _lodashAssign2['default'])({}, defaults, options); | 	    options = (0, _lodashAssign2['default'])({}, defaults, options); | ||||||
|  | @ -12922,7 +12922,7 @@ return /******/ (function(modules) { // webpackBootstrap | ||||||
| 	 | 	 | ||||||
| 	    var defaults = { | 	    var defaults = { | ||||||
| 	      maxLOD: 14, | 	      maxLOD: 14, | ||||||
| 	      distance: 50000 | 	      distance: 30000 | ||||||
| 	    }; | 	    }; | ||||||
| 	 | 	 | ||||||
| 	    options = (0, _lodashAssign2['default'])({}, defaults, options); | 	    options = (0, _lodashAssign2['default'])({}, defaults, options); | ||||||
|  |  | ||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -7,7 +7,7 @@ import THREE from 'three'; | ||||||
| // http://stackoverflow.com/q/26655930/997339
 | // http://stackoverflow.com/q/26655930/997339
 | ||||||
| 
 | 
 | ||||||
| export default function(container) { | export default function(container) { | ||||||
|   var camera = new THREE.PerspectiveCamera(45, 1, 1, 200000); |   var camera = new THREE.PerspectiveCamera(45, 1, 1, 2000000); | ||||||
|   camera.position.y = 4000; |   camera.position.y = 4000; | ||||||
|   camera.position.z = 4000; |   camera.position.z = 4000; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -55,7 +55,7 @@ class Skybox { | ||||||
| 
 | 
 | ||||||
|   _initSkybox() { |   _initSkybox() { | ||||||
|     // Cube camera for skybox
 |     // Cube camera for skybox
 | ||||||
|     this._cubeCamera = new THREE.CubeCamera(1, 2000000, 128); |     this._cubeCamera = new THREE.CubeCamera(1, 20000000, 128); | ||||||
| 
 | 
 | ||||||
|     // Cube material
 |     // Cube material
 | ||||||
|     var cubeTarget = this._cubeCamera.renderTarget; |     var cubeTarget = this._cubeCamera.renderTarget; | ||||||
|  | @ -87,7 +87,7 @@ class Skybox { | ||||||
|       side: THREE.BackSide |       side: THREE.BackSide | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|     this._mesh = new THREE.Mesh(new THREE.BoxGeometry(190000, 190000, 190000), skyboxMat); |     this._mesh = new THREE.Mesh(new THREE.BoxGeometry(1900000, 1900000, 1900000), skyboxMat); | ||||||
| 
 | 
 | ||||||
|     this._updateSkybox = true; |     this._updateSkybox = true; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  | @ -38,7 +38,7 @@ class GeoJSONTileLayer extends TileLayer { | ||||||
|   constructor(path, options) { |   constructor(path, options) { | ||||||
|     var defaults = { |     var defaults = { | ||||||
|       maxLOD: 14, |       maxLOD: 14, | ||||||
|       distance: 50000 |       distance: 30000 | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     options = extend({}, defaults, options); |     options = extend({}, defaults, options); | ||||||
|  |  | ||||||
|  | @ -59,7 +59,7 @@ import extend from 'lodash.assign'; | ||||||
| class ImageTileLayer extends TileLayer { | class ImageTileLayer extends TileLayer { | ||||||
|   constructor(path, options) { |   constructor(path, options) { | ||||||
|     var defaults = { |     var defaults = { | ||||||
|       distance: 200000 |       distance: 300000 | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     options = extend({}, defaults, options); |     options = extend({}, defaults, options); | ||||||
|  |  | ||||||
		Ładowanie…
	
		Reference in New Issue
	
	 Robin Hawkes
						Robin Hawkes