Eevee: Refraction: Fix low roughness artifact.
This commit is contained in:
parent
317b8d9669
commit
d9f2e4c4c5
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue