From 24b79c99072217e430f4687bfc7a3cc978838698 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Thu, 2 May 2013 15:10:05 +0200 Subject: Make new dissolve work on tegra and missing descriptions Change-Id: Icc2d8c1beff0e4b24b1efee14fa267f685af3f44 Reviewed-by: Gunnar Sletta --- basicsuite/Graphical Effects/effect_CustomDissolve.qml | 7 ++----- basicsuite/Photo Gallery/description.txt | 1 + basicsuite/Qt5 Particles Demo/description.txt | 1 + 3 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 basicsuite/Photo Gallery/description.txt create mode 100644 basicsuite/Qt5 Particles Demo/description.txt diff --git a/basicsuite/Graphical Effects/effect_CustomDissolve.qml b/basicsuite/Graphical Effects/effect_CustomDissolve.qml index b1c07a9..bd843bd 100644 --- a/basicsuite/Graphical Effects/effect_CustomDissolve.qml +++ b/basicsuite/Graphical Effects/effect_CustomDissolve.qml @@ -107,17 +107,14 @@ Item { varying lowp float vOpacity; // Noise function from: http://stackoverflow.com/questions/4200224/random-noise-functions-for-glsl - float rand(vec2 n) { + highp float rand(vec2 n) { return fract(sin(dot(n.xy, vec2(12.9898, 78.233))) * 43758.5453); } void main() { lowp vec4 tex = texture2D(source, vTexCoord); - lowp float opacity = 1.0 - smoothstep(0.9, 1.0, vOpacity); - - float particlify = smoothstep(1.0 - vOpacity, 1.0, rand(vTexCoord)) * vOpacity; - + lowp float particlify = smoothstep(1.0 - vOpacity, 1.0, rand(vTexCoord)) * vOpacity; gl_FragColor = tex * mix(vOpacity, particlify, opacity) * qt_Opacity; } diff --git a/basicsuite/Photo Gallery/description.txt b/basicsuite/Photo Gallery/description.txt new file mode 100644 index 0000000..a619aee --- /dev/null +++ b/basicsuite/Photo Gallery/description.txt @@ -0,0 +1 @@ +This is simple photo gallery, indexing images found in /data/images. diff --git a/basicsuite/Qt5 Particles Demo/description.txt b/basicsuite/Qt5 Particles Demo/description.txt new file mode 100644 index 0000000..6fd5320 --- /dev/null +++ b/basicsuite/Qt5 Particles Demo/description.txt @@ -0,0 +1 @@ +This demo offers a few samples of what Qt Quick 2.0's new particle system can do. -- cgit v1.2.3