Commit 888c4e4b authored by Matt Pharr's avatar Matt Pharr Committed by Jan Scheffczyk

Fix small bug in Interaction::SpawnRayTo().

Via @grzegorz-k-karch.  Issue #137.
parent 0fa8df44
......@@ -67,7 +67,7 @@ struct Interaction {
}
Ray SpawnRayTo(const Point3f &p2) const {
Point3f origin = OffsetRayOrigin(p, pError, n, p2 - p);
Vector3f d = p2 - p;
Vector3f d = p2 - origin;
return Ray(origin, d, 1 - ShadowEpsilon, time, GetMedium(d));
}
Ray SpawnRayTo(const Interaction &it) const {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment