Eevee: Refraction: Fix low roughness artifact.

This commit is contained in:
Clément Foucault 2017-08-11 12:53:17 +02:00
parent 317b8d9669
commit d9f2e4c4c5
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
vec4 screen_space_refraction(vec3 viewPosition, vec3 N, vec3 V, float ior, float roughnessSquared, vec3 rand, float ofs)
{
float a2 = roughnessSquared * roughnessSquared;
float a2 = max(5e-6, roughnessSquared * roughnessSquared);
float jitter = fract(rand.x + ofs);
/* Importance sampling bias */