It does it by simulating the effects of retinal disparity. This phenomenon means that each of the two eyes sees somewhat different parts of the picture, which overlap. When put together in our brain, these pictures together form a unique one that has a sense of depth.