stupid old bug in thindielectric.cpp was still there because I had only fixed it in one of two places...

metadata
Wenzel Jakob 2014-02-12 11:51:24 +01:00
parent dd17c3a938
commit 5b413228e1
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ public:
bool sampleTransmission = (bRec.typeMask & ENull)
&& (bRec.component == -1 || bRec.component == 1);
Float R = fresnelDielectricExt(Frame::cosTheta(bRec.wi), m_eta), T = 1-R;
Float R = fresnelDielectricExt(std::abs(Frame::cosTheta(bRec.wi)), m_eta), T = 1-R;
// Account for internal reflections: R' = R + TRT + TR^3T + ..
if (R < 1)