fix for an issue reported by Jean-Dominique Gascuel

metadata
Wenzel Jakob 2013-08-20 15:15:05 +02:00
parent 2f857093e3
commit 9f7e89959d
1 changed files with 2 additions and 2 deletions

View File

@ -245,7 +245,7 @@ bool PathVertex::sampleNext(const Scene *scene, Sampler *sampler,
ray.setDirection(pRec.wo);
measure = ESolidAngle;
if (!(phase->getType() & BSDF::ENonSymmetric)) {
if (!(phase->getType() & PhaseFunction::ENonSymmetric)) {
/* Make use of symmetry -- no need to re-evaluate */
pdf[1-mode] = pdf[mode];
weight[1-mode] = weight[mode];
@ -636,7 +636,7 @@ bool PathVertex::perturbDirection(const Scene *scene, const PathVertex *pred,
measure = ESolidAngle;
if (!(phase->getType() & BSDF::ENonSymmetric)) {
if (!(phase->getType() & PhaseFunction::ENonSymmetric)) {
/* Make use of symmetry -- no need to re-evaluate */
pdf[1-mode] = pdf[mode];
weight[1-mode] = weight[mode];