disable overly paranoid checks in rtrans.h

metadata
Wenzel Jakob 2015-09-22 03:14:44 +02:00
parent 6ed2b4aedd
commit a2dc699cf2
1 changed files with 6 additions and 2 deletions

View File

@ -185,12 +185,16 @@ public:
result; result;
if (m_alphaFixed && m_etaFixed) { if (m_alphaFixed && m_etaFixed) {
SAssert(cosTheta >= 0); if (!(cosTheta >= 0))
return 0.f;
//SAssert(cosTheta >= 0);
result = evalCubicInterp1D(warpedCosTheta, result = evalCubicInterp1D(warpedCosTheta,
m_trans, m_thetaSamples, 0.0f, 1.0f); m_trans, m_thetaSamples, 0.0f, 1.0f);
} else if (m_etaFixed) { } else if (m_etaFixed) {
SAssert(cosTheta >= 0); if (!(cosTheta >= 0))
return 0.f;
//SAssert(cosTheta >= 0);
Float warpedAlpha = std::pow((alpha - m_alphaMin) Float warpedAlpha = std::pow((alpha - m_alphaMin)
/ (m_alphaMax-m_alphaMin), (Float) 0.25f); / (m_alphaMax-m_alphaMin), (Float) 0.25f);