stupid old bug in thindielectric.cpp was still there because I had only fixed it in one of two places...
parent
dd17c3a938
commit
5b413228e1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue