diff options
author | Alexander Court <admin@alexandercourt.de> | 2019-04-03 16:56:19 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-04-03 16:57:38 +0300 |
commit | 07b91c62cbc8c3297fcfc5a29f6d1726807ac33e (patch) | |
tree | e1b550b0d0a402834deb7b6810cc6ad842961c6e /source/blender/draw/engines/eevee/eevee_lightprobes.c | |
parent | b1995e645177fa7f5f5ef8d5c7596cd037dbcc30 (diff) |
Reset background alpha for probe rendering.
Possibly fixes T63005.
Reviewers: fclem
Reviewed By: fclem
Differential Revision: https://developer.blender.org/D4637
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_lightprobes.c')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_lightprobes.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_lightprobes.c b/source/blender/draw/engines/eevee/eevee_lightprobes.c index 3a819460c74..90a3691f6e5 100644 --- a/source/blender/draw/engines/eevee/eevee_lightprobes.c +++ b/source/blender/draw/engines/eevee/eevee_lightprobes.c @@ -903,6 +903,7 @@ static void lightbake_render_scene_reflected(int layer, EEVEE_BakeRenderData *us GPU_framebuffer_bind(fbl->planarref_fb); GPU_framebuffer_clear_depth(fbl->planarref_fb, 1.0); + float prev_background_alpha = vedata->stl->g_data->background_alpha; vedata->stl->g_data->background_alpha = 1.0f; /* Slight modification: we handle refraction as normal @@ -941,6 +942,8 @@ static void lightbake_render_scene_reflected(int layer, EEVEE_BakeRenderData *us /* Restore */ txl->planar_pool = tmp_planar_pool; txl->planar_depth = tmp_planar_depth; + + vedata->stl->g_data->background_alpha = prev_background_alpha; } static void eevee_lightbake_render_scene_to_planars( |