Eyes allow us to detect shadows on objects, as well as perceiving a change in size based on how far/close an object is to us. Our brain uses this information to help us place objects in 3-dimensional spaces, as well as allowing objects to appear 3-dimension due to the highlights/shadows.