Blender Git Commit Log
Git Commits -> Revision 3f6e14e
Revision 3f6e14e by Clément Foucault (master) January 25, 2019, 14:02 (GMT) |
Workbench: Depth Of Field: Initial Commit The algorithm used is borrowed from : http://tuxedolabs.blogspot.com/2018/05/bokeh-depth-of-field-in-single-pass.html This makes it possible to have a decent blur for foreground over defocused background in one pass only. The algorithm is using a gather approach that is much faster than the scatter approach used in Eevee. This makes it possible to have custom bokeh shapes (not implemented yet) which would be impossible with a separable gaussian technique. The blur is done in 2 steps. The first one define the shape of the bokeh and the second that fill the undersampling. A downsample max-CoC tile texture speed up the gathering process. |
Commit Details:
Full Hash: 3f6e14e667c4442bcc1f4d1fc795633cc706150f
Parent Commit: aae2bf7
Lines Changed: +612, -3
2 Added Paths:
/source/blender/draw/engines/workbench/shaders/workbench_effect_dof_frag.glsl (+265, -0) (View)
/source/blender/draw/engines/workbench/workbench_effect_dof.c (+297, -0) (View)
/source/blender/draw/engines/workbench/workbench_effect_dof.c (+297, -0) (View)