crok_dof_blur (Compatible with IFFS 2012 and up)

Download this shader

See the shader changes on GitHub

This Matchbox shader simulates depth of field with bokeh.

Version 3.1

Input:

Setup:

Demo clip: https://vimeo.com/82195519

Shader developer: martins upitis

Based on http://devlog-martinsh.blogspot.fr/2011/12/glsl-depth-of-field-with-bokeh-v23.html

This work is licensed under a Creative Commons Attribution 3.0 Unported License. You are free to share, modify and adapt it for your needs, and even use it for commercial use.

Matchbox version by ivar@inferno-op.com


Version notes

set WRAPPING to: it to GL_CLAMP_TO_EDGE set FILTERING to: GL_NEAREST

set WRAPPING to: it to GL_CLAMP_TO_EDGE set FILTERING to: GL_NEAREST


Older versions that shader

17th of December, around 19:39

Download

17th of December, around 19:50

Download

18th of December, around 14:39

Download

5th of January, around 18:20

Download

Version 2.3

  • new and physically little more accurate DoF
  • two extra input variables - focal length and aperture iris diameter
  • added a debug visualization of focus point and focal range
  • added tooltips to every function

19th of June, around 23:49

Download
  • added shader to GitHub

19th of June, around 23:49

Download
  • updated ignore file
  • added shader to GitHub

19th of June, around 23:49

Download
  • fixed Wrapping and Filtering mode

set WRAPPING to: it to GL_CLAMP_TO_EDGE set FILTERING to: GL_NEAREST

  • fixed Wrapping and Filtering mode

set WRAPPING to: it to GL_CLAMP_TO_EDGE set FILTERING to: GL_NEAREST


comments powered by Disqus