How to calculate the player's relative rotation to the nearest point on the surface of a sphere?

Can you share some pictures or diagrams of how the first and second camera looks, that will give better understanding of the problem statement