Blur N Bokeh

Posted : admin On 1/26/2022
This is an update from the previous post on DoF bokeh shader.

Downoad link:- to the bottom to find the direct download links)Socials:Twitter: twitter.com/. In photography, bokeh (/ ˈboʊkə / BOH-kə or / ˈboʊkeɪ / BOH-kay; Japanese: boke) is the aesthetic quality of the blur produced in out-of-focus parts of an image. Bokeh has also been defined as 'the way the lens renders out-of-focus points of light'. Differences in lens aberrations and aperture shape cause very different bokeh effects. Blur n Bokeh is a tool to give highlight and focus to your images by blurring or editing the background of your image. With Blur n Bokeh you can easily apply our great filter effects to the selected area or the background. User have full control to select the area in the image to highlight.


It is about recording video with a bokeh effect, or what is the same with blur, such as portraits. This is an effect that gives a more professional and attractive appearance to the videos we record, although it depends a lot on the mobile whether the result is more or less credible or acceptable. Blur n Bokeh is a tool to give highlight and focus to your images by blurring or editing the background of your image. With Blur n Bokeh you can easily apply our great filter effects to the selected area or the background.

The main addition is an option of pentagonal shape bokeh. The technique is hackish, but it works. Still I am looking for a more simpler way to make procedural n-gonal shapes of sampling.
The shader is made on 2006 iMac with Mobility Radeon card so it should work on any hardware supporting OpenGL
Screenshots are captured with high sample count, but the point is to show the features and capabilities of the shader.

Blur N Bokeh Full


some of the main features explained with images:
threshold & gain:
brings out highlights by 'threshold' value and enhances them with 'gain'
as you can see this is the main part that makes the distinct look of the bokeh blur. Without bringing out highlights, the blur looks like just a regular circular blur.Bokeh
fringe:
adds chromatic aberration for the blur (small overlay image shows r,g,b color offset of the sample)

Blur And Bokeh


bias:
shifts the weights of the samples on the bokeh edges

Blur N Bokeh Game


pentagon:
pentagon shape of the bokeh (still needs some work)

Blur And Bokeh 3.1


edit: i have removed the 'scale' factor, it is now automatic.
GLSL frag shader: HERE