-
Notifications
You must be signed in to change notification settings - Fork 0
Implementing Star Map Interface
A star map actor which implements StarMapInterface is an actor referenced by Planetesimal Component and serves as a source of information about illumination sources. The interface is defined as a generic query for location and color of a named sky object, but Planetesimal Component queries only for an object named "Sun".


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 changes to propagate to the atmospheric scattering system, it is recommended 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.