Continuing with my
little experiment this morning I added sky lighting and a simple day / night cycle.
 |
Day time |
 |
Night time |
The whole sky lighting part more or less piggy back rides on the torch lighting code. I just needed to add support for storing a height-map for each x/z chunk coordinate which is then used to determine whether a block is fully sky lit or not, and then smooth it out over distance over all the blocks that aren't lit.