Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/EnricoMonese/DayNightCycle

Easy Day-Night Cycle for Unity game engine
https://github.com/EnricoMonese/DayNightCycle

csharp day-night-cycle game scene unity-game-engine

Last synced: about 4 hours ago
JSON representation

Easy Day-Night Cycle for Unity game engine

Awesome Lists containing this project

README

        

![GitHub stars](https://img.shields.io/github/stars/enricomonese/DayNightCycle?style=social)
![GitHub forks](https://img.shields.io/github/forks/enricomonese/DayNightCycle?style=social)
![GitHub watchers](https://img.shields.io/github/watchers/enricomonese/DayNightCycle?style=social)
![GitHub followers](https://img.shields.io/github/followers/enricomonese?style=social)

![GitHub repo size](https://img.shields.io/github/repo-size/enricomonese/DayNightCycle)
![GitHub language count](https://img.shields.io/github/languages/count/enricomonese/DayNightCycle)
![GitHub top language](https://img.shields.io/github/languages/top/enricomonese/DayNightCycle)
![GitHub repo license](https://img.shields.io/github/license/enricomonese/DayNightCycle)
![GitHub last commit](https://img.shields.io/github/last-commit/enricomonese/DayNightCycle)


Patreon donate button

# Day-Night Cycle

An Easy and Simple solution for day-night cycle in Unity game engine.

![Screen][Image3]

## How to use

To use simply import *DayNightCycle.cs* and *Editor/DayNightCycleEditor.cs* into your project.
Assign *DayNightCycle.cs* to a directional light in your scene and play around with the settings.
Then assign your Directional light and a procedural skybox material in the *Lighting Settings*.
You may also lower the *Reflection Intensity* to get get darker scenes during night.

![Screen][Image1]
![Screen][Image2]

## Requirements

Tested in the 5.5 beta but should work in previous versions too.
Procedural Skybox material is needed.

## TODO

* [ ] Presets **(maybe)**
* [ ] Range sliders for min-max variables
* [ ] Quick method that returns in game time(hours:minutes:seconds)


Patreon donate button

[Image1]: http://www.edraflame.com/daynightcycle-github-images/inspector.png
[Image2]: http://www.edraflame.com/daynightcycle-github-images/lighting-settings.png
[Image3]: http://www.edraflame.com/daynightcycle-github-images/screen.png
[Kino]: https://github.com/search?q=kino+user%3Akeijiro&type=Repositories