VPL renderer light leak bugfix

metadata
Wenzel Jakob 2011-09-14 01:30:14 -04:00
parent a42d5d620a
commit 1dc823094e
1 changed files with 1 additions and 1 deletions

View File

@ -551,7 +551,7 @@ void VPLShaderManager::configure(const VPL &vpl, const BSDF *bsdf,
else
oss << "_dir(vplWo);" << endl;
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
<< " if (!diffuseReceivers)" << endl
<< " contrib *= "<< bsdfEvalName << "(uv, wi, wo);" << endl