Blog about random ideas about game development, geometry and computer graphics
Thursday, July 5, 2012
Continuing with my little experiment this morning I added sky lighting and a simple day / night cycle.
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.