Skip to content

Commit

Permalink
Fix fragment name for erratum (via Jeff Mahovsky)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmp committed Dec 28, 2023
1 parent 2b5837a commit 5acc5e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pbrt/util/sampling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pstd::array<Float, 3> SampleSphericalTriangle(const pstd::array<Point3f, 3> &v,
CHECK(!IsNaN(cosBp));
cosBp = Clamp(cosBp, -1, 1);

// Sample $c'$ along the arc between $b'$ and $a$
// Sample $c'$ along the arc between $a$ and $c$
Float sinBp = SafeSqrt(1 - Sqr(cosBp));
Vector3f cp = cosBp * a + sinBp * Normalize(GramSchmidt(c, a));

Expand Down

0 comments on commit 5acc5e4

Please sign in to comment.