Here’s a video explaining something similar done for Solus.
http://www.solusthegame.com/img/day_night_large.jpg