SunConfig ​
Inherits: DatabaseResource < Resource
The PATH of the sun: where it is in the sky and when. One per world (a planet has one sun that rises and sets the same way in every valley of it).
Description ​
How the sun LOOKS (its brightness and colour by the hour, shadows, how it lights the fog and the sky) is the mood of a place, so it is in the Environment config (the "Sun Light" groups): a zone or an event that changes the Environment can dim or warm the sun without moving it. Set day_night_cycle to false for a sun that stays where it is.
Properties ​
bool | day_night_cycle | true |
float | static_rotation | -45.0 |
float | sun_rise_hour | 6.0 |
float | sun_set_hour | 20.5 |
float | sun_heading | 90.0 |
Property descriptions ​
Day Night Cycle
bool day_night_cycle = true ​
Enable day/night cycle (false = a sun that stays where it is: the static height below)
Static Sun
float static_rotation = -45.0 ​
Static sun height (degrees, when day_night_cycle = false): 0 is on the horizon, -90 is straight overhead. The direction it shines from is the heading of the Sun Direction group
Day Night Timing
float sun_rise_hour = 6.0 ​
Hour when sun rises (0-24)
float sun_set_hour = 20.5 ​
Hour when sun sets (0-24)
Sun Direction
float sun_heading = 90.0 ​
The direction of the sun's path across the sky, in degrees round the up axis. 90 (the default): the sun rises in the east (+X), crosses the sky overhead and sets in the west (-X), the way the maps are laid out. 0: it rises in the south (+Z) and sets in the north (-Z). 180 and 270 are the opposite ones