AUI Framework
develop
Cross-platform base for C++ UI apps
|
Underlying type of GaussianBlur but with customizable downscale. Generally, use GaussianBlur. More...
#include <AUI/ASS/Property/Backdrop.h>
Public Member Functions | |
bool | operator== (const GaussianBlurCustom &) const =default |
Signals and public fields | |
AMetric | radius = 6_dp |
blur radius. | |
int | downscale = 1 |
downscale factor. =1 equals don't affect. Must be positive. | |
Underlying type of GaussianBlur but with customizable downscale. Generally, use GaussianBlur.
int ass::Backdrop::GaussianBlurCustom::downscale = 1 |
downscale factor. =1 equals don't affect. Must be positive.
Effective blur radius is radius * downscale
. However, the downscale part is done by cheap downscaling of the framebuffer texture. Thus, by raising downscale factor you can achieve larger blur radius with approximately same visual result.
Performance benefit of downscale factor { .radius = 6_dp, .downscale = x } in comparison to { .radius = 6_dp * x, .downscale = 1 } is x^2.
is visually approximately same as
but 16 times cheaper.
AMetric ass::Backdrop::GaussianBlurCustom::radius = 6_dp |
blur radius.
Performance costs of radius is O^2. Please use downscale factor to approximate large blur radius.