In a real world photo, not everything will be totally sharp, since some objects will not be on the focal plane. We simulated this effect by randomly sampling a point on a small circle (the "lens") and ajusting the ray's direction. The effect depends on the size of the aperture. The following images have increasing lens sizes, the last one was rendered without depth of field. The effect was stressed for visualisation, for a nicer picture look into the shading section.



|