commit 69582926d3376ca6dbb9435d6555e6cd51894097
parent 00090a42878d44acd855ee326b47c53f871153a7
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 26 Oct 2015 10:46:03 +0100
Fix a wrong assertion
The library asserted when specular reflections are encountered. This
might be a check used for debug purposes. Remove it!
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/src/sgf_estimator.c b/src/sgf_estimator.c
@@ -202,7 +202,6 @@ gebhart_radiative_path
ASSERT(f3_dot(normal, dir) > 0);
} else { /* Specular reflection */
const float tmp = -2.f * f3_dot(dir, normal);
- ASSERT(0);
f3_mulf(vec0, normal, tmp);
f3_add(dir, dir, vec0);
f3_normalize(dir, dir);