The first thing we had to set up is the Unity procedural skybox needed to show the sky itself; the Unity skybox also includes the sun ( unfortunately not the moon ) and a powerful shader to achieve some interesting effects, such as for example atmosphere thickness, equator convergence, sun color and size. As you can see in the inspector the day has been splitted in four parts, each one holding colors and other specific settings which are then interpolated one another to reach the desired result.
On startup the day-night cycle system will set the game day time in order to match the timezone you are living in ( so if you run the game at midnight and you can’t see Chico walking alone on the peak think he might be sleeping ) and you will see the sky changing slowly like it happens in real life; in fact an entire cycle will last 24 hours by default, unless you speed it up like we did ripping the following video ( you will be allowed to speed up or slow down the time in the option menu ).
….but first a set of screenshots……