Added two-pass rendering (one to framebuffer, one to screen)