Myślę że ten artykuł powinien Ci nieco rozjaśnić sytuację.
http://www.luminous-landscape.com/tutorials/dof2.shtml