diff --git a/src/ColorHelpers.cpp b/src/ColorHelpers.cpp index d780c31..4f62205 100644 --- a/src/ColorHelpers.cpp +++ b/src/ColorHelpers.cpp @@ -1,5 +1,7 @@ #include "ColorHelpers.hpp" +// Some samples might be NaN or a very big number and kill the whole pixel during the Monte-Carlo averaging +// We hide this issue here Vector3 DeNan(const Vector3 &color) { auto temp = color;