bloom will use wider kernel
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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 = {});
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user