Eevee: Try to fix NaN caused by normal maps + bentnormals

Should help with T65118.
This commit is contained in:
Clément Foucault
2019-06-07 13:53:30 +02:00
parent 873c756e5d
commit 0cfdc8d182

View File

@@ -177,7 +177,7 @@ void integrate_slice(
/* Solving inner integral */
vec2 h_2 = 2.0 * h;
vec2 vd = -cos(h_2 - n) + cos_n + h_2 * sin(n);
float vis = (vd.x + vd.y) * 0.25 * n_proj_len;
float vis = saturate((vd.x + vd.y) * 0.25 * n_proj_len);
visibility += vis;