|
QmlMaterial 0.1.0
|
#include <qml_material/scenegraph/blur_mask_material.h>
Public Member Functions | |
| void | init_profile_texture (QQuickWindow *win) |
| Bind the per-window shared 1D unit-CDF profile texture. Cheap. | |
| void | init_corner_texture (QQuickWindow *win, float sigma, float radius) |
| float | effective_radius () const |
| Effective uniform radius used by the shader (= max of the 4 radii). | |
QSGMaterial that renders a gaussian-blurred rect / rrect mask analytically using a 1D cumulative-gaussian profile texture.
The profile is unit-sigma and sigma-independent — one texture serves all σ. Samples are taken in the shader as Φ(t/σ) ≈ profile((t/σ)/6 + 0.5).
| void qml_material::sg::BlurMaskMaterial::init_corner_texture | ( | QQuickWindow * | win, |
| float | sigma, | ||
| float | radius ) |
Resolve a (sigma, radius)-keyed corner blur texture from the per-window shared cache. No-op below the analytic-path threshold.