Skip to content

Commit

Permalink
Fixed last fix...
Browse files Browse the repository at this point in the history
  • Loading branch information
Dade916 committed Oct 31, 2021
1 parent 00366fb commit 3700c88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/slg/engines/bidircpu/bidircputhread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ void BiDirCPURenderThread::ConnectVertices(const float time,
BSDF bsdfConn;
Spectrum connectionThroughput;
PathVolumeInfo volInfo = eyeVertex.volInfo; // I need to use a copy here
if (!scene->Intersect(device, LIGHT_RAY | INDIRECT_RAY, &volInfo, u0, &p2pRay, &p2pRayHit, &bsdfConn,
if (!scene->Intersect(device, LIGHT_RAY | INDIRECT_RAY | SHADOW_RAY, &volInfo, u0, &p2pRay, &p2pRayHit, &bsdfConn,
&connectionThroughput)) {
// Nothing was hit, the light path vertex is visible

Expand Down Expand Up @@ -356,7 +356,7 @@ void BiDirCPURenderThread::ConnectToEye(const float time,
BSDF bsdfConn;
Spectrum connectionThroughput;
PathVolumeInfo volInfo = lightVertex.volInfo; // I need to use a copy here
if (!scene->Intersect(device, LIGHT_RAY | CAMERA_RAY | SHADOW_RAY, &volInfo, u0, &traceRay, &traceRayHit, &bsdfConn,
if (!scene->Intersect(device, LIGHT_RAY | CAMERA_RAY, &volInfo, u0, &traceRay, &traceRayHit, &bsdfConn,
&connectionThroughput)) {
// Nothing was hit, the light path vertex is visible

Expand Down

0 comments on commit 3700c88

Please sign in to comment.