Source code for pbrt, the renderer described in the third edition of "Physically Based Rendering: From Theory To Implementation", by Matt Pharr, Wenzel Jakob, and Greg Humphreys.
This breaks the Triangle.Reintersect test for reasons that are no immediately obvious. Pushed a95b0bc97f79785dbbf2576019d730084677b492. Reopening for now.
Hello,
In https://github.com/mmp/pbrt-v3/blob/master/src/core/interaction.h#L70 shouldn't it be Vector3f d = p2 - origin; ?
Kind regards, Grzegorz Karch