SorraTheOrc / DayNightCycle

Easy Day-Night Cycle for Unity game engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Day-Night Cycle

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

Screen

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 Screen

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)

Buy Me A Coffee

License

Copyright (C) 2016 Enrico Monese

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Easy Day-Night Cycle for Unity game engine


Languages

Language:C# 100.0%