Hey everyone! I made a fully procedural sky shader for Godot 4 and wanted to share it with the community.
It’s got:
- Full day/night cycle driven by a single
normalised_timeparameter - Volumetric cloud layer with ray-marching and self-shadowing
- High-altitude cirrus cloud overlay
- Dynamic sun with atmospheric horizon scattering at sunrise/sunset
- Moon with phase simulation and surface texture support
- Procedural star field that fades in at night
- Ground hemisphere with customizable gradient
- 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:
- GitHub: GitHub - MahamayaGames-5/Mahamaya-Sky-Shader: Procedural day/night sky shader for Godot 4 with volumetric clouds, dynamic sun/moon, and star field. · GitHub
- Itch.io: Mahamaya Sky Shader by Mahamaya Games
Let me know if you have any questions or feedback! ![]()