Skip to content

An open-source shader for creating stylized skies. Compatible with Godot game engine version 4.

License

Notifications You must be signed in to change notification settings

gdquest-demos/godot-4-stylized-sky

Repository files navigation


Stylized Sky

An open-source shader for creating stylized skies. Compatible with Godot game engine version 4.

Preview

sky day sky night
Day sky Night sky

Features

Feature Description
Sky Gradient Define the sky color from 3 inputs.
Starfield Add twinkling starfield in the background, ideal for nocturnal scenes.
Clouds Displays scrolling animated volumetric clouds.
Astro Position an image based on the primary Directional Light 3D direction.
Shooting stars Add shooting stars falling from the top of the skybox.

Optimization

The sky shader can be optimized by applying the following changes.

  • Static sky Enhance performance by making the sky static by removing the TIME variable.
  • Sample Reduction Adjust cloud sampling to fine-tune the balance between quality and performance.

Credits

Voronoi method by Inigo Quilez

Volumetric Rendering by Alan Zucconi

Direction to rotation matrix by Martijn Pieters

About

An open-source shader for creating stylized skies. Compatible with Godot game engine version 4.

Resources

License

Stars

Watchers

Forks

Releases

No releases published