Eevee: Fix the NaN pixel issue.
authorClément Foucault <foucault.clem@gmail.com>
Thu, 6 Jul 2017 14:01:21 +0000 (16:01 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Thu, 6 Jul 2017 14:01:21 +0000 (16:01 +0200)
commitd02711ed883ee0d1844d49d39a8814aca5b029c3
treeaf023cd163cf3b7964e4759aab4ec77fd4f76665
parentc217d518efe5f5eeb709229e2832d9d2dfde7c30
Eevee: Fix the NaN pixel issue.

It's cause by degenerate triangle having normals set to (0,0,0) which may not be compressed like it should.
This fix the problem in the final indirect lighting evaluation which might be costly.
source/blender/draw/engines/eevee/shaders/irradiance_lib.glsl