fixed infinite recursion possibility in the VPL generator

metadata
Wenzel Jakob 2010-08-30 10:14:24 +02:00
parent 3b77937d78
commit 45b381d0ac
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ size_t generateVPLs(const Scene *scene, size_t offset, size_t count, int maxDept
/* Assuming that BSDF importance sampling is perfect,
the following should equal the maximum albedo
over all spectral samples */
Float approxAlbedo = std::min((Float) 1, bsdfVal.max());
Float approxAlbedo = std::min((Float) 0.9f, bsdfVal.max());
if (sampler->next1D() > approxAlbedo)
break;
else