[Bf-blender-cvs] [a3f4de64e5c] blender2.8: Eevee: Fix bad Outlines after probe updates.

Clément Foucault noreply at git.blender.org
Tue Mar 13 04:26:24 CET 2018


Commit: a3f4de64e5c556bb081b6981009a49c7982e7b6a
Author: Clément Foucault
Date:   Tue Mar 13 01:24:51 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBa3f4de64e5c556bb081b6981009a49c7982e7b6a

Eevee: Fix bad Outlines after probe updates.

This was because the default matrices were not setup back after resetting the current TAA sample.

===================================================================

M	source/blender/draw/engines/eevee/eevee_engine.c

===================================================================

diff --git a/source/blender/draw/engines/eevee/eevee_engine.c b/source/blender/draw/engines/eevee/eevee_engine.c
index fca936adb12..059fbf5ba05 100644
--- a/source/blender/draw/engines/eevee/eevee_engine.c
+++ b/source/blender/draw/engines/eevee/eevee_engine.c
@@ -212,6 +212,10 @@ static void eevee_draw_background(void *vedata)
 		/* Refresh Probes */
 		DRW_stats_group_start("Probes Refresh");
 		EEVEE_lightprobes_refresh(sldata, vedata);
+		/* Probes refresh can have reset the current sample. */
+		if (stl->effects->taa_current_sample == 1) {
+			DRW_viewport_matrix_override_unset_all();
+		}
 		EEVEE_lightprobes_refresh_planar(sldata, vedata);
 		DRW_stats_group_end();



More information about the Bf-blender-cvs mailing list