Day/Night Cycle
Once I had lighting proper I started to work on day & night cycles. Before all this the light was always on, but you wouldn't want a touch out on a nice sunny day so the first step was to make the light turn on and off, a simple enough process, however this also meant separating the light distance from the exploration distance because on a sunny day you can practically see the whole screen which means you can "explore" the whole screen and I don't want the light to fill the whole screen because a touch will only be able to light a certain area no matter what the ambient lighting is set to.
Read the rest at fallenmoon.net
...