The cornea acts like the front lens of a camera. Light rays are bent into the eye at an angle, enabling a picture to be projected onto the retina at the back of the eye. When the cornea is damaged it can become less transparent or its shape can change. This can prevent light from reaching the retina and causes the picture transmitted to the brain to be distorted or cloudy.
Definition from NHS Choices: cornea