Skip to content

Commit

Permalink
fix(GlobeView): remove default directional light
Browse files Browse the repository at this point in the history
  • Loading branch information
jailln committed Oct 25, 2024
1 parent 565ba36 commit 0a098af
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/3dtiles_loader.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
itowns.enableKtx2Loader('./lib/basis/', view.renderer);

// Add ambient light to globally illuminates all objects
const light = new AmbientLight(0x404040, 15);
const light = new AmbientLight(0x404040, 40);
view.scene.add(light);

// Setup loading screen
Expand Down
5 changes: 0 additions & 5 deletions src/Core/Prefab/GlobeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ class GlobeView extends View {
const tileLayer = new GlobeLayer('globe', options.object3d, options);
this.mainLoop.gfxEngine.label2dRenderer.infoTileLayer = tileLayer.info;

const sun = new THREE.DirectionalLight();
sun.position.set(-0.5, 0, 1);
sun.updateMatrixWorld(true);
this.scene.add(sun);

this.addLayer(tileLayer);
this.tileLayer = tileLayer;

Expand Down
2 changes: 1 addition & 1 deletion test/functional/source_file_gpx_3d.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ describe('source_file_gpx_3d', function _() {
});

it('should wait for the mesh to be added to the scene', async function _it() {
await page.waitForFunction(() => view.scene.children.length === 5, { timeout: 10000 });
await page.waitForFunction(() => view.scene.children.length === 4, { timeout: 10000 });
});
});

0 comments on commit 0a098af

Please sign in to comment.