BokehShader2.js
BokehDepthShader
Bokeh depth data

Preview requires WebGL2. You can still download the demo.
Drag to orbit · Middle-drag to pan · Scroll to zoomOne finger to orbit · Two fingers to pan or zoom
Shows distance from the camera with light and dark to help choose what should blur.
Official source