Mahamaya Sky Shader! A totally procedural and realtime sky shader for Godot 4!

Hey everyone! I made a fully procedural sky shader for Godot 4 and wanted to share it with the community.

It’s got:

  1. Full day/night cycle driven by a single normalised_time parameter
  2. Volumetric cloud layer with ray-marching and self-shadowing
  3. High-altitude cirrus cloud overlay
  4. Dynamic sun with atmospheric horizon scattering at sunrise/sunset
  5. Moon with phase simulation and surface texture support
  6. Procedural star field that fades in at night
  7. Ground hemisphere with customizable gradient
  8. Optimized with Godot’s half-res pass for the cloud layer

All parameters are exposed as uniforms and fully tweakable in the inspector. Full documentation for every uniform is available on the GitHub page.

Links:

Let me know if you have any questions or feedback! :grin:

3 Likes