AlexRazor1337 / godot-simple-sky-project

A simple Godot 4 project with day-night and season systems, a procedurally moving sun and moon, and a stylized sky shader.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

godot-simple-sky-project

A simple Godot 4 project with day-night and season systems, a procedurally moving sun and moon, and a stylized sky shader.

Features:

  • Extremely simplified day-night system with support for seasons based on latitude and earth axial tilt
    • Calculated position of the sun and drawing it through the sky shader
    • Shorter days in winter and longer in summer
    • Changing position of the sun depends of the day of the year
  • Calculated position of the moon and drawing it through the sky shader
    • Include the inclination of the orbit and the period of time to cover it
  • Sky shader
    • Clouds based on noise function (without repeating texture)
    • Phases of the moon depending on the position of the sun

screen1 screen2 screen3

Shader effect on YouTube:

Watch the video

About

A simple Godot 4 project with day-night and season systems, a procedurally moving sun and moon, and a stylized sky shader.

License:MIT License


Languages

Language:GDScript 100.0%