refactored tiled renderer and global illumination