diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-10-19 16:12:45 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-10-19 19:13:22 +0300 |
commit | e6fe207a52b1d3f46f02c3d01973ae501c97ba49 (patch) | |
tree | 3c55e3d8e694522cc83bafc4e38f898d2b57c9fc /source | |
parent | 905921d2b524c2657a727a5c3b8799e7d6e28161 (diff) |
Eevee: LightProbes: Fix negative padding
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_lightprobes.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |