Reset background alpha for probe rendering.

Possibly fixes T63005.

Reviewers: fclem

Reviewed By: fclem

Differential Revision: https://developer.blender.org/D4637
This commit is contained in:
Alexander Court 2019-04-03 15:56:19 +02:00 committed by Clément Foucault
parent b1995e6451
commit 07b91c62cb
Notes: blender-bot 2023-02-14 08:39:23 +01:00
Referenced by issue #63005, EEVEE: Reflection probe breaks transparent background
1 changed files with 3 additions and 0 deletions

View File

@ -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(