Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/EnricoMonese/DayNightCycle
- Owner: EnricoMonese
- License: mit
- Created: 2016-09-05T20:22:42.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T15:53:15.000Z (about 4 years ago)
- Last Synced: 2024-10-30T00:05:00.200Z (12 days ago)
- Topics: csharp, day-night-cycle, game, scene, unity-game-engine
- Language: C#
- Homepage:
- Size: 1.96 MB
- Stars: 36
- Watchers: 9
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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)# 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)[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