aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/doc
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@qt.io>2020-06-03 11:18:13 +0200
committerPaul Olav Tvete <paul.tvete@qt.io>2020-06-04 16:20:26 +0200
commit70dd5e24ce29adeab48932082863b3e3e3e4ba47 (patch)
tree40431af347a2a908d6314e2f765ed54ab9c9c0ae /src/quick/doc
parenta2a9be9fa80c61464ef30cfcc7ceef42ddac73e2 (diff)
Remove QQuickOpenGLShaderEffect
This also removes QQuickUniformAnimator, which is not yet ported to RHI (QTBUG-83976) Task-number: QTBUG-83977 Change-Id: I3e656e6817ac991371b7f6557f050e122635d279 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/quick/doc')
-rw-r--r--src/quick/doc/snippets/qml/animators.qml86
1 files changed, 44 insertions, 42 deletions
diff --git a/src/quick/doc/snippets/qml/animators.qml b/src/quick/doc/snippets/qml/animators.qml
index a182d68ae2..87684f2792 100644
--- a/src/quick/doc/snippets/qml/animators.qml
+++ b/src/quick/doc/snippets/qml/animators.qml
@@ -220,50 +220,52 @@ Rectangle {
}
//! [opacity target]
//![shaderon]
-ShaderEffect {
- width: 50
- height: 50
- property variant t;
- UniformAnimator on t {
- from: 0
- to: 1
- duration: 1000
- }
- fragmentShader:
- "
- uniform lowp float t;
- varying highp vec2 qt_TexCoord0;
- void main() {
- lowp float c = qt_TexCoord0.y;
- gl_FragColor = vec4(c * t, 0, 0, 1);
- }
- "
-}
+// Uniform animators are not yet ported to Qt 6
+//ShaderEffect {
+// width: 50
+// height: 50
+// property variant t;
+// UniformAnimator on t {
+// from: 0
+// to: 1
+// duration: 1000
+// }
+// fragmentShader:
+// "
+// uniform lowp float t;
+// varying highp vec2 qt_TexCoord0;
+// void main() {
+// lowp float c = qt_TexCoord0.y;
+// gl_FragColor = vec4(c * t, 0, 0, 1);
+// }
+// "
+//}
//![shaderon]
//![shader target]
-ShaderEffect {
- id: shader
- width: 50
- height: 50
- property variant t;
- UniformAnimator {
- target: shader
- uniform: "t"
- from: 0
- to: 1
- duration: 1000
- running: true
- }
- fragmentShader:
- "
- uniform lowp float t;
- varying highp vec2 qt_TexCoord0;
- void main() {
- lowp float c = qt_TexCoord0.y;
- gl_FragColor = vec4(0, 0, c * t, 1);
- }
- "
-}
+// Uniform animators are not yet ported to Qt 6
+//ShaderEffect {
+// id: shader
+// width: 50
+// height: 50
+// property variant t;
+// UniformAnimator {
+// target: shader
+// uniform: "t"
+// from: 0
+// to: 1
+// duration: 1000
+// running: true
+// }
+// fragmentShader:
+// "
+// uniform lowp float t;
+// varying highp vec2 qt_TexCoord0;
+// void main() {
+// lowp float c = qt_TexCoord0.y;
+// gl_FragColor = vec4(0, 0, c * t, 1);
+// }
+// "
+//}
//![shader target]
//![mixed]
Rectangle {