Moved most of code from gbuffer to framebuffer_array. (tree broken)