diff --git a/src/pbrt/util/sampling.cpp b/src/pbrt/util/sampling.cpp index 4b8683697..78d71d42a 100644 --- a/src/pbrt/util/sampling.cpp +++ b/src/pbrt/util/sampling.cpp @@ -73,7 +73,7 @@ pstd::array SampleSphericalTriangle(const pstd::array &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));