Skip to content

Commit 142d887

Browse files
committed
Apply the previous commit to an overloaded version of GetSamplePosition()
1 parent aa56251 commit 142d887

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/slg/cameras/camera.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ bool Camera::GetSamplePosition(const luxrays::Point &p,
4949
eyeDir /= eyeDistance;
5050

5151
Ray eyeRay(lensPoint, eyeDir, 0.f, eyeDistance);
52-
ClampRay(&eyeRay);
53-
eyeRay.UpdateMinMaxWithEpsilon();
54-
52+
// Do not clamp the ray here because of the check inside GetSamplePosition
5553
return GetSamplePosition(&eyeRay, filmX, filmY);
5654
}
5755

0 commit comments

Comments
 (0)