bloom will use wider kernel

This commit is contained in:
Turanszki Janos
2020-08-24 17:31:55 +01:00
parent c12306765d
commit 333f189020
3 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -8109,7 +8109,7 @@ void GenerateMipChain(const Texture& texture, MIPGENFILTER filter, CommandList c
// Gaussian filter is a bit different as we do it in a separable way:
for (uint32_t i = 0; i < desc.MipLevels - 1; ++i)
{
Postprocess_Blur_Gaussian(texture, *options.gaussian_temp, texture, cmd, i, i + 1);
Postprocess_Blur_Gaussian(texture, *options.gaussian_temp, texture, cmd, i, i + 1 , options.wide_gauss);
}
device->EventEnd(cmd);
return;
@@ -11538,6 +11538,7 @@ void Postprocess_Bloom(
device->EventBegin("Bloom Mipchain", cmd);
MIPGEN_OPTIONS mipopt;
mipopt.gaussian_temp = &bloom_tmp;
mipopt.wide_gauss = true;
GenerateMipChain(bloom, wiRenderer::MIPGENFILTER_GAUSSIAN, cmd, mipopt);
device->EventEnd(cmd);
+1
View File
@@ -397,6 +397,7 @@ namespace wiRenderer
int arrayIndex = -1;
const wiGraphics::Texture* gaussian_temp = nullptr;
bool preserve_coverage = false;
bool wide_gauss = false;
};
void GenerateMipChain(const wiGraphics::Texture& texture, MIPGENFILTER filter, wiGraphics::CommandList cmd, const MIPGEN_OPTIONS& options = {});
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates, breaking API changes
const int minor = 47;
// minor bug fixes, alterations, refactors, updates
const int revision = 21;
const int revision = 22;
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);