10 property bool layerEffect: false;
11 onLayerEffectChanged: root.maybeUse();
12 Component.onCompleted: root.maybeUse();
14 property real layerOpacity: 1;
15 property bool layerVisible: true;
19 box.layer.effect = shaderEffect
26 uniform lowp sampler2D source;
27 uniform lowp float qt_Opacity;
28 varying highp vec2 qt_TexCoord0;
30 gl_FragColor = texture2D(source, qt_TexCoord0).bgra * qt_Opacity;
43 visible: parent.layerVisible;
44 opacity: parent.layerOpacity;