I've read a lot of articles trying to figure out how to do that.
I found a blog saying:
How do I create vertex shader containing 4 vertice per pixel??this new technique uses the vertex shader to generate bokeh sprites/billboards, the steps to do this is:
* create big vertex shader containing 4 vertices per pixel!, yes you are reading it correct, 4 vertices per pixel...
* inside vs, you generate the quad vertices based on some math, this math will actually use some circle of confusion values and your current image, so you can set bokeh color and size.
* inside ps, you just sample your bokeh texture, can be any shape you like, and use the color you output from the vs, to set its intensity etc.
the site:http://orenk2k.blogspot.tw/2012/04/anot ... nique.html