I couldn`t find any code example of bokeh effect, so I had to do it from a scratch. Basically I alligned texture samples circularly, instead of vertically and horizontally. That did the trick..
To do: make the bokeh shape hectagonal when apertuare value is raised.
GLSL frag. shader: http://www.pasteall.org/11375
0 comments:
Post a Comment