Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
vasturiano committed Oct 19, 2023
1 parent 2392243 commit ca2d8e7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions example/custom-globe-styling/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
globeMaterial.shininess = 15;
});

setTimeout(() => { // wait for scene to be populated (asynchronously)
const directionalLight = world.scene().children.find(obj3d => obj3d.type === 'DirectionalLight');
directionalLight && directionalLight.position.set(1, 1, 1); // change light position to see the specularMap's effect
});
const directionalLight = world.lights().find(light => light.type === 'DirectionalLight');
directionalLight && directionalLight.position.set(1, 1, 1); // change light position to see the specularMap's effect
</script>
</body>

0 comments on commit ca2d8e7

Please sign in to comment.