diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-11-01 03:08:58 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-11-01 03:17:35 +0300 |
commit | 2fbbc8c64390ea825c9fca86cd90968f74d96865 (patch) | |
tree | 1b584b303a1baacf867085cf0785c7f9db7d5ce1 | |
parent | a5e8618f480a7b72eebcae36bd19b25626615fc9 (diff) |
Eevee: SSR: Use max lod on planar reflections.
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/effect_ssr_frag.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/effect_ssr_frag.glsl b/source/blender/draw/engines/eevee/shaders/effect_ssr_frag.glsl index 138dc91448f..2dc8dfa0d1c 100644 --- a/source/blender/draw/engines/eevee/shaders/effect_ssr_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/effect_ssr_frag.glsl @@ -310,7 +310,7 @@ vec4 get_ssr_sample( vec3 sample; if (is_planar) { - sample = textureLod(probePlanars, vec3(ref_uvs, planar_index), mip).rgb; + sample = textureLod(probePlanars, vec3(ref_uvs, planar_index), min(mip, lodPlanarMax)).rgb; } else { sample = textureLod(prevColorBuffer, ref_uvs, mip).rgb; |