Skip to content

Commit

Permalink
refactor(GlobeView): move sun light, from tileLayer to main scene.
Browse files Browse the repository at this point in the history
- cleaning the tiled layer of all objects that are not tiles mesh.
  • Loading branch information
gchoqueux committed Mar 30, 2023
1 parent e1e3b1d commit 68b78f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Prefab/GlobeView.js
Expand Up @@ -108,7 +108,7 @@ class GlobeView extends View {
const sun = new THREE.DirectionalLight();
sun.position.set(-0.5, 0, 1);
sun.updateMatrixWorld(true);
tileLayer.object3d.add(sun);
this.scene.add(sun);

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

0 comments on commit 68b78f0

Please sign in to comment.