diff options
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/ssr_lib.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/ssr_lib.glsl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/ssr_lib.glsl b/source/blender/draw/engines/eevee/shaders/ssr_lib.glsl index a563291bb90..ea227ea9efd 100644 --- a/source/blender/draw/engines/eevee/shaders/ssr_lib.glsl +++ b/source/blender/draw/engines/eevee/shaders/ssr_lib.glsl @@ -79,7 +79,10 @@ vec4 screen_space_refraction(vec3 vP, vec3 N, vec3 V, float ior, float roughness /* Texel footprint */ vec2 texture_size = vec2(textureSize(refractColorBuffer, 0).xy) / hizUvScale.xy; - float mip = clamp(log2(cone_footprint * max(texture_size.x, texture_size.y)), 0.0, 9.0); + float mip = log2(cone_footprint * max(texture_size.x, texture_size.y)); + + // Disabled. Causes incorrect LOD sampling on Nvidia cards. (T101438) + // mip = clamp(mip, 0.0, 9.0); vec3 spec = textureLod(refractColorBuffer, hit_uvs * hizUvScale.xy, mip).xyz; float mask = screen_border_mask(hit_uvs); |