aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/particles/custom/blurparticles.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/particles/custom/blurparticles.qml')
-rw-r--r--examples/declarative/particles/custom/blurparticles.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/particles/custom/blurparticles.qml b/examples/declarative/particles/custom/blurparticles.qml
index 15da9ba9db..7974c6ab7c 100644
--- a/examples/declarative/particles/custom/blurparticles.qml
+++ b/examples/declarative/particles/custom/blurparticles.qml
@@ -76,7 +76,7 @@ Rectangle{
attribute highp vec4 vVec; // x,y = constant speed, z,w = acceleration
attribute highp float r;
- uniform highp mat4 qt_ModelViewProjectionMatrix;
+ uniform highp mat4 qt_Matrix;
uniform highp float timestamp;
uniform lowp float qt_Opacity;
@@ -101,7 +101,7 @@ Rectangle{
+ vVec.xy * t * vData.y // apply speed vector..
+ 0.5 * vVec.zw * pow(t * vData.y, 2.);
- gl_Position = qt_ModelViewProjectionMatrix * vec4(pos.x, pos.y, 0, 1);
+ gl_Position = qt_Matrix * vec4(pos.x, pos.y, 0, 1);
highp float fadeIn = min(t * 10., 1.);
highp float fadeOut = 1. - max(0., min((t - 0.75) * 4., 1.));
@@ -113,13 +113,13 @@ Rectangle{
property variant source: theSource
property variant blurred: ShaderEffectSource {
smooth: true
- sourceItem: ShaderEffectItem {
+ sourceItem: ShaderEffect {
width: theItem.width
height: theItem.height
property variant delta: Qt.size(0.0, 1.0 / height)
property variant source: ShaderEffectSource {
smooth: true
- sourceItem: ShaderEffectItem {
+ sourceItem: ShaderEffect {
width: theItem.width
height: theItem.height
property variant delta: Qt.size(1.0 / width, 0.0)