Blender Git Loki

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)

4 Modified Paths:

/source/blender/draw/CMakeLists.txt (+2, -0) (Diff)
/source/blender/draw/engines/workbench/workbench_deferred.c (+13, -2) (Diff)
/source/blender/draw/engines/workbench/workbench_forward.c (+1, -0) (Diff)
/source/blender/draw/engines/workbench/workbench_private.h (+34, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021