Lighting creates the 2D pattern of contrast the brain interprets to recognize 3D objects in photographs. In an in-person viewing experience, the brain relies on stereoscopic vision, parallax, shifting focal in addition to the clues created by the highlight and shadow patterns the light on the object creates. When viewing a photo, the brain tries to match the patterns of contrast and color it has seen to those other sensory memories.