An optimized Day-Night system with custom volumetric clouds, packed with configuration features, and moon phases!

Video Demo

Technique

For this to work as a day-night cycle in an actual game, it had to be as performant as possible, here, the stars. sun and moon, are all in the skybox’s shader, and are driven by its parameters. Volumetric clouds are driven by a baked 3D texture.