Here is something I did for my Procedural Graphics class. The power of Math!!! Click the image to see the lighting change as the day progresses (there are even some fireflies at night).
Click here to view the code on Github
click here or on the image to see movie