Refactor a bit to compare panorama and cubemap