diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-06 18:49:07 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-09 10:58:44 +0200 |
commit | 1a819c0ca5744d3537944126ff013686d5efbffe (patch) | |
tree | 89d55d7f662244b564c77047861b5ef015d10556 /src/effects/shaders/lineargradient_mask.frag | |
parent | b7e24192352bee955d37a89fc061f1dafd32b73a (diff) | |
download | qtgraphicaleffects-1a819c0ca5744d3537944126ff013686d5efbffe.tar.gz |
Port 17 effects to RHI, remove 8 unportable ones
The following are based on static shader code, and after porting the
shaders they will work fully identically to 5.15:
FastBlur
Colorize
OpacityMask
BrightnessContrast
ColorOverlay
Desaturate
Displace
GammaAdjust
HueSaturation
LevelAdjust
RectangularGlow
Thresholdmask
LinearGradient
RadialGradient
ConicalGradient
The following change behavior:
Glow
DropShadow
These now only have the fast variants, because those rely on static shader code.
So we are going back to the Qt 5.5 versions and make them behave as if 'fast'
was always set to true. The 'fast' and 'samples' properties are removed.
The following are removed:
Blend
GaussianBlur
DirectionalBlur
MaskedBlur
RadialBlur
RecursiveBlur
ZoomBlur
InnerShadow
The autotest and the gallery application (run qmlscene testBed.qml in
tests/manual/testbed) have been adjusted accordingly and now work across
all QRhi backends.
The docs may still refer to removed effects in some code snippets. Updating
that is left as a separate exercise.
[ChangeLog] Graphical Effects no longer relies on dynamically generated
shader strings. The following effects have been removed: Blend, GaussianBlur,
MaskedBlur, RadialBlur, RecursiveBlur, ZoomBlur, InnerShadow. Glow
and DropShadow always use the 'fast' variant. The fast and samples
properties for these are thus no longer applicable and have been
removed.
Change-Id: Ife83f3828f37977596fd34f8da8b61961f0ed28a
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/effects/shaders/lineargradient_mask.frag')
-rw-r--r-- | src/effects/shaders/lineargradient_mask.frag | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/effects/shaders/lineargradient_mask.frag b/src/effects/shaders/lineargradient_mask.frag deleted file mode 100644 index 0fed39f..0000000 --- a/src/effects/shaders/lineargradient_mask.frag +++ /dev/null @@ -1,11 +0,0 @@ -uniform lowp sampler2D source; -uniform lowp sampler2D maskSource; -uniform lowp float qt_Opacity; -varying highp vec2 qt_TexCoord0; -varying highp vec2 qt_TexCoord1; - -void main() { - lowp vec4 gradientColor = texture2D(source, qt_TexCoord1); - lowp float maskAlpha = texture2D(maskSource, qt_TexCoord0).a; - gl_FragColor = gradientColor * maskAlpha * qt_Opacity; -} |