Skip to content

Commit 38ed850

Browse files
committed
Fix: Wrong ray direction vector used in BiDir engine when evaluating Ortho camera connection
1 parent 125879e commit 38ed850

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/slg/engines/bidircpu/bidircputhread.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,7 @@ void BiDirCPURenderThread::ConnectToEye(const float time,
367367
Ray eyeRay;
368368

369369
if (scene.GetCamera().GetType() == Camera::ORTHOGRAPHIC){
370-
Vector rayDir(lightVertex.bsdf.hitPoint.p - lensPoint);
371-
eyeRay = Ray(lightVertex.bsdf.hitPoint.p, rayDir,
370+
eyeRay = Ray(lightVertex.bsdf.hitPoint.p, eyeDir,
372371
0.f,
373372
eyeDistance,
374373
time);

0 commit comments

Comments
 (0)