QmlMaterial 0.1.0
Loading...
Searching...
No Matches
qml_material::sg::BlurMaskMaterial Class Reference

#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).
 

Detailed Description

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).

Member Function Documentation

◆ init_corner_texture()

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.


The documentation for this class was generated from the following files: