[Bf-blender-cvs] [506f5654fe9] temp-eeveelightcache: Eevee: LightCache: Fix sample selection algorithm
Clément Foucault
noreply at git.blender.org
Fri Jun 22 17:46:46 CEST 2018
Commit: 506f5654fe97542a7c6252bbacbb884903fd99de
Author: Clément Foucault
Date: Fri Jun 22 17:39:50 2018 +0200
Branches: temp-eeveelightcache
https://developer.blender.org/rB506f5654fe97542a7c6252bbacbb884903fd99de
Eevee: LightCache: Fix sample selection algorithm
===================================================================
M source/blender/draw/engines/eevee/eevee_lightcache.c
===================================================================
diff --git a/source/blender/draw/engines/eevee/eevee_lightcache.c b/source/blender/draw/engines/eevee/eevee_lightcache.c
index 111576b07f7..961e032205c 100644
--- a/source/blender/draw/engines/eevee/eevee_lightcache.c
+++ b/source/blender/draw/engines/eevee/eevee_lightcache.c
@@ -533,7 +533,7 @@ static void compute_cell_id(
if (!(((r_local_cell[0] % prev_stride) == 0) &&
((r_local_cell[1] % prev_stride) == 0) &&
((r_local_cell[2] % prev_stride) == 0)) ||
- (i == 0))
+ ((i == 0) && (lvl == max_lvl)))
{
if (visited_cells == cell_idx) {
return;
More information about the Bf-blender-cvs
mailing list