Commit: 98a7f1b3356bd5dd5190150b12f8b00f7fbe7455
Author: Clément Foucault
Date:   Wed Aug 9 15:44:17 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB98a7f1b3356bd5dd5190150b12f8b00f7fbe7455

Eevee: Refraction: Fix border artifacts.

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

M       source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl

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

diff --git a/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl 
b/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl
index a766a16968d..36a0f0b35b6 100644
--- a/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl
+++ b/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl
@@ -345,7 +345,7 @@ float get_btdf_lut(sampler2DArray btdf_lut_tex, float NV, 
float roughness, float
        coords.x = (ior > 1.0)
                   ? (0.9 + lut_scale_bias_texel_size.z) + (0.1 - 
lut_scale_bias_texel_size.z) * f0_from_ior(ior)
                   : (0.9 + lut_scale_bias_texel_size.z) * ior * ior;
-       coords.y = 1.0 - NV;
+       coords.y = 1.0 - saturate(NV);
        coords.xy *= lut_scale_bias_texel_size.x;
        coords.xy += lut_scale_bias_texel_size.y;

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to