itowns 2.44.3-next.15 → 2.44.3-next.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
itowns.enableKtx2Loader('./lib/basis/', view.renderer);
|
|
101
101
|
|
|
102
102
|
// Add ambient light to globally illuminates all objects
|
|
103
|
-
const light = new AmbientLight(0x404040,
|
|
103
|
+
const light = new AmbientLight(0x404040, 40);
|
|
104
104
|
view.scene.add(light);
|
|
105
105
|
|
|
106
106
|
// Setup loading screen
|
|
@@ -90,10 +90,6 @@ class GlobeView extends View {
|
|
|
90
90
|
this.camera3D.far = ellipsoidSizes.x * 10;
|
|
91
91
|
const tileLayer = new GlobeLayer('globe', options.object3d, options);
|
|
92
92
|
this.mainLoop.gfxEngine.label2dRenderer.infoTileLayer = tileLayer.info;
|
|
93
|
-
const sun = new THREE.DirectionalLight();
|
|
94
|
-
sun.position.set(-0.5, 0, 1);
|
|
95
|
-
sun.updateMatrixWorld(true);
|
|
96
|
-
this.scene.add(sun);
|
|
97
93
|
this.addLayer(tileLayer);
|
|
98
94
|
this.tileLayer = tileLayer;
|
|
99
95
|
if (!placement.isExtent) {
|