forked from bartvdbraak/blender
EEVEE: Fix TAA spreading black disease.
The SSR has a bug that creates NAN pixels values. Reported here T54795.
This commit is contained in:
parent
b60617ffab
commit
b671b1759c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user