simplify sample again

This commit is contained in:
Jonathan 2022-07-10 14:11:17 -04:00
parent a329c901c6
commit 4c68ba42d3
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}