Fixed lighting and cleaned up code on framebuffer objects.