This project includes two different implementation of a depth of field in computer graphics. The first implementation uses pure WebGL, while the second one uses three.js.
To see a running implementation and further details visit this project's GitHub page.