The resolution of pit eyes can be greatly improved by incorporating a material with a higher refractive index to form a lens, which may greatly reduce the blur radius encountered—hence increasing the resolution obtainable. The most basic form, seen in some gastropods and annelids, consists of a lens of one refractive index. A far sharper image can be obtained using materials with a high refractive index, decreasing to the edges; this decreases the focal length and thus allows a sharp image to form on the retina. This also allows a larger aperture for a given sharpness of image, allowing more light to enter the lens; and a flatter lens, reducing spherical aberration. Such an inhomogeneous lens is necessary in order for the focal length to drop from about 4 times the lens radius, to 2.5 radii.

Heterogeneous eyes have evolved at least eight times: four or more times in gastropods, once in the copepods, once in the annelids and once in the cephalopods. No aquatic organisms possess homogeneous lenses; presumably the evolutionary pressure for a heterogeneous lens is great enough for this stage to be quickly "outgrown".

This eye creates an image that is sharp enough that motion of the eye can cause significant blurring. To minimize the effect of eye motion while the animal moves, most such eyes have stabilizing eye muscles.

The ocelli of insects bear a simple lens, but their focal point always lies behind the retina; consequently they can never form a sharp image. This capitulates the function of the eye. Ocelli (pit-type eyes of arthropods) blur the image across the whole retina, and are consequently excellent at responding to rapid changes in light intensity across the whole visual field; this fast response is further accelerated by the large nerve bundles which rush the information to the brain. Focusing the image would also cause the sun's image to be focused on a few receptors, with the possibility of damage under the intense light; shielding the receptors would block out some light and thus reduce their sensitivity.
This fast response has led to suggestions that the ocelli of insects are used mainly in flight, because they can be used to detect sudden changes in which way is up (because light, especially UV light which is absorbed by vegetation, usually comes from above).

Multiple lenses
પરિચય
Refractive cornea
Spherical lensed eye