VPL renderer light leak bugfix
parent
a42d5d620a
commit
1dc823094e
|
@ -551,7 +551,7 @@ void VPLShaderManager::configure(const VPL &vpl, const BSDF *bsdf,
|
||||||
else
|
else
|
||||||
oss << "_dir(vplWo);" << endl;
|
oss << "_dir(vplWo);" << endl;
|
||||||
if (vpl.type == ESurfaceVPL)
|
if (vpl.type == ESurfaceVPL)
|
||||||
oss << " else contrib *= abs(cosTheta(vplWo));" << endl;
|
oss << " else contrib *= max(0, cosTheta(vplWo));" << endl;
|
||||||
oss << " if (d < minDist) d = minDist;" << endl
|
oss << " if (d < minDist) d = minDist;" << endl
|
||||||
<< " if (!diffuseReceivers)" << endl
|
<< " if (!diffuseReceivers)" << endl
|
||||||
<< " contrib *= "<< bsdfEvalName << "(uv, wi, wo);" << endl
|
<< " contrib *= "<< bsdfEvalName << "(uv, wi, wo);" << endl
|
||||||
|
|
Loading…
Reference in New Issue