-
Notifications
You must be signed in to change notification settings - Fork 0
Implementing Star Map Interface
Davor Bokun edited this page Oct 2, 2019
·
3 revisions


And that is all that needs to be done to get the Star Map's basic functionality up and running.
Additionally if you want to be able to animate the sky (i.e. the Sun in particular) and want the chnages to propagate to the atmospheric scattering system, it is recomended that you setup the event dispatcher as well. It can easily be done in three steps:



Typically all you need is to bind the callback to your event dispatcher, but you can also check the celestial object name like in this example:

With this setup you'll be able to call the event dispatcher with the new updated Sun's color and location, which will broadcast that information throughout the system.