From 5acc5e46cf4b5c3382babd6a3b93b87f54d79b0a Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Thu, 28 Dec 2023 14:50:48 -0800 Subject: [PATCH] Fix fragment name for erratum (via Jeff Mahovsky) --- src/pbrt/util/sampling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));