Skip to content
Snippets Groups Projects
Commit 7d11b0e8 authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by Rémi Denis-Courmont
Browse files

qml: use sourceItem opacity by default in FrostedGlassEffect

parent 26893b16
No related branches found
No related tags found
1 merge request!2279qml: fix #27159, #27160
......@@ -34,6 +34,8 @@ Rectangle {
property real noiseStrength: 0.02
property real exclusionStrength: 0.09
opacity: source.opacity
FastBlur {
id: blurEffect
......@@ -64,6 +66,8 @@ Rectangle {
uniform lowp sampler2D source; // this item
varying highp vec2 qt_TexCoord0;
uniform lowp float qt_Opacity;
uniform lowp vec4 tint;
uniform lowp float exclusionStrength;
......@@ -88,7 +92,7 @@ Rectangle {
blurred = exclude(blurred, exclColor);
gl_FragColor = mix(blurred, tint, tintStrength) + noise;
gl_FragColor = (mix(blurred, tint, tintStrength) + noise) * qt_Opacity;
}"
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment