Eevee: Refraction: Fix border artifacts.

This commit is contained in:
Clément Foucault 2017-08-09 15:44:17 +02:00
parent f53fa8d148
commit 98a7f1b335
1 changed files with 1 additions and 1 deletions

View File

@ -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;