An open API service indexing awesome lists of open source software.

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.

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
![Screenshot 2024-04-11 100620](https://github.com/christinec-dev/DayNightCycleGodot/assets/87696858/dae55b02-60fb-4d34-9d48-0c3425fe77bc)
![Screenshot 2024-04-11 100609](https://github.com/christinec-dev/DayNightCycleGodot/assets/87696858/d15e3521-8403-480d-aee3-3f9599e0bf48)
![Screenshot 2024-04-11 100552](https://github.com/christinec-dev/DayNightCycleGodot/assets/87696858/d0bcf6a9-2c5c-4ab2-a800-23572bde3e49)
![Screenshot 2024-04-11 100540](https://github.com/christinec-dev/DayNightCycleGodot/assets/87696858/4da2987f-4afc-400c-a8e3-9748f988c3a8)

## 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)