diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-04-30 13:25:15 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-04-30 17:39:26 +0300 |
commit | 41431eacfa1afc66533f5d27cc21dfa58024e26c (patch) | |
tree | 11f582e11d426087293bb8519ae2fc8b6681bec3 /source/blender/draw/engines/eevee/shaders/effect_ssr_frag.glsl | |
parent | 630c24fc61329bb1a161653f355fad887aa1d08d (diff) |
Eevee: TAA: Use safe color when outputing the final color.
This prevent any NANs pixel to spear accross the history. This does not
mean we should allow NANs at all!
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/effect_ssr_frag.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/effect_ssr_frag.glsl | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/effect_ssr_frag.glsl b/source/blender/draw/engines/eevee/shaders/effect_ssr_frag.glsl index 3512d4a86c1..6c21d7d6fef 100644 --- a/source/blender/draw/engines/eevee/shaders/effect_ssr_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/effect_ssr_frag.glsl @@ -511,11 +511,6 @@ 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); } |