From d2dee500b79827340621047606228bde94c2a14e Mon Sep 17 00:00:00 2001 From: Michael Priestman Date: Sun, 20 Oct 2024 16:26:51 +0100 Subject: [PATCH] Increment splatBuffer pointer by correct amount This pointer should be incremented by nBuckets, and not NSpectrumSamples. --- src/pbrt/film.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pbrt/film.cpp b/src/pbrt/film.cpp index a5700a1c2..e7e02bb0b 100644 --- a/src/pbrt/film.cpp +++ b/src/pbrt/film.cpp @@ -882,7 +882,7 @@ SpectralFilm::SpectralFilm(FilmBaseParameters p, Float lambdaMin, Float lambdaMa pixel.weightSums = bucketWeightBuffer; bucketWeightBuffer += nBuckets; pixel.bucketSplats = splatBuffer; - splatBuffer += NSpectrumSamples; + splatBuffer += nBuckets; } }