Fix for flipped perspective on some latitudes

Debug layer added