Commit: e6fe207a52b1d3f46f02c3d01973ae501c97ba49
Author: Clément Foucault
Date:   Fri Oct 19 15:12:45 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBe6fe207a52b1d3f46f02c3d01973ae501c97ba49

Eevee: LightProbes: Fix negative padding

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

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

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

diff --git a/source/blender/draw/engines/eevee/eevee_lightprobes.c 
b/source/blender/draw/engines/eevee/eevee_lightprobes.c
index d318dea518c..3d236a5ddd9 100644
--- a/source/blender/draw/engines/eevee/eevee_lightprobes.c
+++ b/source/blender/draw/engines/eevee/eevee_lightprobes.c
@@ -1127,7 +1127,7 @@ void EEVEE_lightbake_filter_glossy(
        for (int i = 0; i < maxlevel + 1; i++) {
                float bias = (i == 0) ? -1.0f : 1.0f;
                pinfo->texel_size = 1.0f / (float)mipsize;
-               pinfo->padding_size = (float)(1 << (maxlevel - i - 1));
+               pinfo->padding_size = (i == maxlevel) ? 0 : (float)(1 << 
(maxlevel - i - 1));
                pinfo->padding_size *= pinfo->texel_size;
                pinfo->layer = probe_idx;
                pinfo->roughness = i / (float)maxlevel;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to