further photon mapper fixes
parent
bbde81ab99
commit
ece6baf6ce
|
@ -202,7 +202,7 @@ public:
|
|||
|
||||
/// Initialize the query record for a recursive query
|
||||
inline void recursiveQuery(const RadianceQueryRecord &parent) {
|
||||
type = parent.type;
|
||||
type = parent.type | EIntersection;
|
||||
scene = parent.scene;
|
||||
sampler = parent.sampler;
|
||||
depth = parent.depth+1;
|
||||
|
|
|
@ -305,8 +305,9 @@ public:
|
|||
|
||||
if (bsdf == NULL) {
|
||||
RadianceQueryRecord rRec2;
|
||||
rRec2.recursiveQuery(rRec, rRec.type);
|
||||
return m_parentIntegrator->Li(RayDifferential(its.p, ray.d, ray.time), rRec2);
|
||||
rRec2.recursiveQuery(rRec);
|
||||
Li += m_parentIntegrator->Li(RayDifferential(its.p, ray.d, ray.time), rRec2);
|
||||
return Li;
|
||||
}
|
||||
|
||||
int bsdfType = bsdf->getType();
|
||||
|
|
Loading…
Reference in New Issue