fixed a minor sampling issue in roughglass.cpp
parent
b5903a1425
commit
6bedfb611e
|
@ -327,7 +327,8 @@ public:
|
||||||
Frame mFrame(sampleBeckmannD(bRec.sample));
|
Frame mFrame(sampleBeckmannD(bRec.sample));
|
||||||
|
|
||||||
/* Perfect specular reflection along the microsurface normal */
|
/* Perfect specular reflection along the microsurface normal */
|
||||||
refract(mFrame.toLocal(bRec.wi), bRec.wo, bRec.quantity);
|
if (refract(mFrame.toLocal(bRec.wi), bRec.wo, bRec.quantity) == 0)
|
||||||
|
return Spectrum(0.0f);
|
||||||
bRec.wo = mFrame.toWorld(bRec.wo);
|
bRec.wo = mFrame.toWorld(bRec.wo);
|
||||||
|
|
||||||
bRec.sampledComponent = 1;
|
bRec.sampledComponent = 1;
|
||||||
|
|
Loading…
Reference in New Issue