diff options
author | Clément Foucault <fclem> | 2020-02-25 15:25:49 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-02-25 15:26:01 +0300 |
commit | 6e23433c1a747660d582bfe0d15179a9c7bed51c (patch) | |
tree | ef03fea63450d6977d5ff5550b299b812d364255 /source/blender/draw/engines/eevee/eevee_materials.c | |
parent | 7e7c9276022f44495d9c7f9b3e09a2bd592aeab5 (diff) |
EEVEE: Lookdev: Add support for partially blurred background
This is using the GGX probe as background. This has the drawback of
having the resolution choosed in the indirect lighting setting.
The blurring is not really high-quality.
The pros is that it has a simple implementation and is fast to evaluate.
This patch also fades the background alpha to make overlay engine draw the
default background color in the correct color space. Removing one colorspace
hack.
Reviewed By: jbakker
Differential Revision: https://developer.blender.org/D6895
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_materials.c')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_materials.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_materials.c b/source/blender/draw/engines/eevee/eevee_materials.c index 3c793ca0693..0c9efeb0a16 100644 --- a/source/blender/draw/engines/eevee/eevee_materials.c +++ b/source/blender/draw/engines/eevee/eevee_materials.c @@ -1158,8 +1158,7 @@ void EEVEE_materials_cache_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata) const float *col = G_draw.block.colorBackground; - EEVEE_lookdev_cache_init( - vedata, &grp, psl->background_pass, stl->g_data->background_alpha, wo, NULL); + EEVEE_lookdev_cache_init(vedata, sldata, &grp, psl->background_pass, wo, NULL); if (!grp && wo) { col = &wo->horr; |