From 4c68ba42d3b64fe082be549e12c515ad2d77bed6 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sun, 10 Jul 2022 14:11:17 -0400 Subject: [PATCH] simplify sample again --- light/bounce.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/light/bounce.cc b/light/bounce.cc index be779cc5..18393678 100644 --- a/light/bounce.cc +++ b/light/bounce.cc @@ -182,7 +182,7 @@ static void MakeBounceLightsThread(const settings::worldspawn_keys &cfg, const m for (const auto &lightmap : surf.lightmapsByStyle) { for (const auto &sample : lightmap.samples) { - sum[lightmap.style] += sample.color; + sum[lightmap.style] += sample.color / sample_divisor; } } @@ -190,7 +190,6 @@ static void MakeBounceLightsThread(const settings::worldspawn_keys &cfg, const m for (auto &styleColor : sum) { styleColor.second /= area_divisor; - styleColor.second /= sample_divisor; styleColor.second *= cfg.bouncescale.value(); total += styleColor.second; }