Eevee: Fix Missing alpha when rendering with DOF
authorClément Foucault <foucault.clem@gmail.com>
Mon, 15 Oct 2018 14:04:33 +0000 (16:04 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Mon, 15 Oct 2018 14:04:50 +0000 (16:04 +0200)
commit9ecf68e8ae060c8d46a809ca3e6aacf399f23033
tree2ae014c7815366e1118fce2941231a9c8bb1dc54
parent478899dee771e2421d49077674af4de97b78cd9e
Eevee: Fix Missing alpha when rendering with DOF

NOTE: There is a float imprecision near the focus plane
due to the current technique used for DOF. This makes the alpha channel
transparent on nearly in focus objects even when they should not.
This artifact should be fixed when the DOF will use scatter as gather for
low brightness areas.

Fix T57042 : Eevee does not render alpha when DOF is turned on
source/blender/draw/engines/eevee/eevee_depth_of_field.c
source/blender/draw/engines/eevee/eevee_private.h
source/blender/draw/engines/eevee/shaders/effect_dof_frag.glsl
source/blender/draw/engines/eevee/shaders/effect_dof_vert.glsl