From a2dc699cf21122e5a5ed6f94b21973976f926e76 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Tue, 22 Sep 2015 03:14:44 +0200 Subject: [PATCH] disable overly paranoid checks in rtrans.h --- src/bsdfs/rtrans.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bsdfs/rtrans.h b/src/bsdfs/rtrans.h index 8a778007..0985d22e 100644 --- a/src/bsdfs/rtrans.h +++ b/src/bsdfs/rtrans.h @@ -185,12 +185,16 @@ public: result; if (m_alphaFixed && m_etaFixed) { - SAssert(cosTheta >= 0); + if (!(cosTheta >= 0)) + return 0.f; + //SAssert(cosTheta >= 0); result = evalCubicInterp1D(warpedCosTheta, m_trans, m_thetaSamples, 0.0f, 1.0f); } else if (m_etaFixed) { - SAssert(cosTheta >= 0); + if (!(cosTheta >= 0)) + return 0.f; + //SAssert(cosTheta >= 0); Float warpedAlpha = std::pow((alpha - m_alphaMin) / (m_alphaMax-m_alphaMin), (Float) 0.25f);