diff options
Diffstat (limited to 'src/quick/doc/snippets/qml/animators.qml')
-rw-r--r-- | src/quick/doc/snippets/qml/animators.qml | 86 |
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 { |