EEVEE: Fix TAA spreading black disease.

The SSR has a bug that creates NAN pixels values. Reported here T54795.
This commit is contained in:
Clément Foucault 2018-04-24 17:54:24 +02:00
parent b60617ffab
commit b671b1759c
1 changed files with 5 additions and 0 deletions

View File

@ -511,6 +511,11 @@ void main()
fallback_cubemap(N, V, worldPosition, viewPosition, roughness, roughnessSquared, spec_accum);
}
/* XXX TODO FIXME (fclem): Something else produces NANs and is not handled before. */
if (any(isnan(spec_accum))) {
spec_accum = vec4(0.0);
}
fragColor = vec4(spec_accum.rgb * speccol_roughness.rgb, 1.0);
}