Skip to content

Commit

Permalink
Update lights intensity according to Three r155 https://discourse.thr…
Browse files Browse the repository at this point in the history
  • Loading branch information
vasturiano committed Aug 5, 2023
1 parent ca202e9 commit 30bbe17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/globe.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,11 @@ export default Kapsule({
custom: d => d
};

state.renderObjs.renderer().useLegacyLights = false; // force behavior of three < 154
state.renderObjs
.objects([ // Populate scene
new THREE.AmbientLight(0xcccccc),
new THREE.DirectionalLight(0xffffff, 0.6),
new THREE.AmbientLight(0xcccccc, Math.PI),
new THREE.DirectionalLight(0xffffff, 0.6 * Math.PI),
state.globe
])
.hoverOrderComparator((a, b) => {
Expand Down

0 comments on commit 30bbe17

Please sign in to comment.