Skip to content

Commit

Permalink
better lightning constants
Browse files Browse the repository at this point in the history
  • Loading branch information
jailln committed Aug 9, 2024
1 parent 5ab4dc6 commit ea76cf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/3dtiles_loader.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</script>

<script type="module">
import { AmbientLight, Sphere, Vector3 } from 'three';
import { AmbientLight } from 'three';
import {
zoomToLayer,
fillHTMLWithPickingInfo,
Expand All @@ -60,7 +60,7 @@
const state = {
// URL to tileset JSON
tileset: uri.searchParams.get('tileset'),
// Cesium ION /
// Cesium ION /
assetId: uri.searchParams.get('assetId'),
};

Expand Down Expand Up @@ -88,7 +88,7 @@
const view = new GlobeView(viewerDiv, placement, {});

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

// Setup loading screen
Expand Down

0 comments on commit ea76cf3

Please sign in to comment.