https://github.com/christinec-dev/daynightcyclegodot
Shader-based Day & Night Cycle for Godot with Light Rays & Shadows.
https://github.com/christinec-dev/daynightcyclegodot
Last synced: 22 days ago
JSON representation
Shader-based Day & Night Cycle for Godot with Light Rays & Shadows.
- Host: GitHub
- URL: https://github.com/christinec-dev/daynightcyclegodot
- Owner: christinec-dev
- Created: 2024-04-12T08:51:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-17T07:35:13.000Z (about 1 year ago)
- Last Synced: 2025-03-25T08:24:17.368Z (about 1 month ago)
- Language: GDScript
- Homepage:
- Size: 266 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Godot 2D Day & Night Cycle
This is the official GitHub repository for the shader-based Day & Night Cycle, featured on my YouTube channel. This system incorporates shader-based shadows, dynamic light rays, and an AnimationPlayer-based day and night cycle. 😊## Resources
To learn more about shaders and how they are used in Godot, visit the following resources:
- [YouTube Video](https://www.youtube.com/watch?v=UN3I8IP_BBY)
- [The Book of Shaders](https://thebookofshaders.com/)
- [Godot Book of Shaders](https://jayaarrgh.itch.io/book-of-shaders-godot)
- [Shadows Shader Overview](https://github.com/christinec-dev/DayNightCycleGodot/blob/main/Shadows_ShaderOverview.md)
- [LightRays Shader Overview](https://github.com/christinec-dev/DayNightCycleGodot/blob/main/LightRays_ShaderOverview.md)
## Features
### Daytime Dependent Shadows
- `Dynamic Adjustment`: Shadows adjust their angle, length, and color based on the time of day.
- `Wide Applicability`: Implement shadows across various game objects using Godot’s LightOccluder nodes.### Daytime Dependent Light Rays
- `Visual Dynamics`: Light rays animate and change color according to the time of day.
- `Customizable Effects`: Easily adjust the size, separation, angle, and position of the light rays to fit the needs of your scene.
### Animated Day/Night Cycle
- `Sky Modulation`: Utilizes ColorModulate and AnimationPlayers to shift the sky’s color in synchronization with the time of day, simulating realistic day-to-night transitions.## Preview



## Asset Creditations
- [https://seliel-the-shaper.itch.io/character-base](https://seliel-the-shaper.itch.io/character-base)
- [https://quintino-pixels.itch.io/assorted-icons](https://quintino-pixels.itch.io/assorted-icons)
- [Sprout Lands - Asset Pack by Cup Nooble (itch.io)](https://cupnooble.itch.io/sprout-lands-asset-pack)