A system and method for ophthalmic surgery in which a light field camera is used to capture a digital image of the surgical field including the eye. The digital image is used to create image information and directional information, which is then used to from a three dimensional (3D) image with motion parallax.