aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/shaders
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/scenegraph/shaders')
-rw-r--r--src/quick/scenegraph/shaders/24bittextmask.frag10
-rw-r--r--src/quick/scenegraph/shaders/24bittextmask_core.frag14
-rw-r--r--src/quick/scenegraph/shaders/32bitcolortext.frag9
-rw-r--r--src/quick/scenegraph/shaders/32bitcolortext_core.frag13
-rw-r--r--src/quick/scenegraph/shaders/8bittextmask.frag9
-rw-r--r--src/quick/scenegraph/shaders/8bittextmask_core.frag13
-rw-r--r--src/quick/scenegraph/shaders/distancefieldoutlinetext.frag16
-rw-r--r--src/quick/scenegraph/shaders/distancefieldoutlinetext_core.frag20
-rw-r--r--src/quick/scenegraph/shaders/distancefieldshiftedtext.frag17
-rw-r--r--src/quick/scenegraph/shaders/distancefieldshiftedtext.vert17
-rw-r--r--src/quick/scenegraph/shaders/distancefieldshiftedtext_core.frag20
-rw-r--r--src/quick/scenegraph/shaders/distancefieldshiftedtext_core.vert18
-rw-r--r--src/quick/scenegraph/shaders/distancefieldtext.frag13
-rw-r--r--src/quick/scenegraph/shaders/distancefieldtext.vert13
-rw-r--r--src/quick/scenegraph/shaders/distancefieldtext_core.frag16
-rw-r--r--src/quick/scenegraph/shaders/distancefieldtext_core.vert15
-rw-r--r--src/quick/scenegraph/shaders/flatcolor.frag6
-rw-r--r--src/quick/scenegraph/shaders/flatcolor.vert7
-rw-r--r--src/quick/scenegraph/shaders/flatcolor_core.frag10
-rw-r--r--src/quick/scenegraph/shaders/flatcolor_core.vert10
-rw-r--r--src/quick/scenegraph/shaders/hiqsubpixeldistancefieldtext.frag58
-rw-r--r--src/quick/scenegraph/shaders/hiqsubpixeldistancefieldtext.vert34
-rw-r--r--src/quick/scenegraph/shaders/hiqsubpixeldistancefieldtext_core.frag32
-rw-r--r--src/quick/scenegraph/shaders/hiqsubpixeldistancefieldtext_core.vert36
-rw-r--r--src/quick/scenegraph/shaders/loqsubpixeldistancefieldtext.frag17
-rw-r--r--src/quick/scenegraph/shaders/loqsubpixeldistancefieldtext.vert27
-rw-r--r--src/quick/scenegraph/shaders/loqsubpixeldistancefieldtext_core.frag21
-rw-r--r--src/quick/scenegraph/shaders/loqsubpixeldistancefieldtext_core.vert29
-rw-r--r--src/quick/scenegraph/shaders/opaquetexture.frag8
-rw-r--r--src/quick/scenegraph/shaders/opaquetexture.vert12
-rw-r--r--src/quick/scenegraph/shaders/opaquetexture_core.frag12
-rw-r--r--src/quick/scenegraph/shaders/opaquetexture_core.vert14
-rw-r--r--src/quick/scenegraph/shaders/outlinedtext.frag21
-rw-r--r--src/quick/scenegraph/shaders/outlinedtext.vert24
-rw-r--r--src/quick/scenegraph/shaders/outlinedtext_core.frag25
-rw-r--r--src/quick/scenegraph/shaders/outlinedtext_core.vert26
-rw-r--r--src/quick/scenegraph/shaders/rendernode.frag8
-rw-r--r--src/quick/scenegraph/shaders/rendernode.vert10
-rw-r--r--src/quick/scenegraph/shaders/rendernode_core.frag12
-rw-r--r--src/quick/scenegraph/shaders/rendernode_core.vert12
-rw-r--r--src/quick/scenegraph/shaders/smoothcolor.frag6
-rw-r--r--src/quick/scenegraph/shaders/smoothcolor.vert45
-rw-r--r--src/quick/scenegraph/shaders/smoothcolor_core.frag10
-rw-r--r--src/quick/scenegraph/shaders/smoothcolor_core.vert47
-rw-r--r--src/quick/scenegraph/shaders/smoothtexture.frag9
-rw-r--r--src/quick/scenegraph/shaders/smoothtexture.vert55
-rw-r--r--src/quick/scenegraph/shaders/smoothtexture_core.frag13
-rw-r--r--src/quick/scenegraph/shaders/smoothtexture_core.vert57
-rw-r--r--src/quick/scenegraph/shaders/sprite.frag12
-rw-r--r--src/quick/scenegraph/shaders/sprite.vert23
-rw-r--r--src/quick/scenegraph/shaders/sprite_core.frag16
-rw-r--r--src/quick/scenegraph/shaders/sprite_core.vert24
-rw-r--r--src/quick/scenegraph/shaders/styledtext.frag14
-rw-r--r--src/quick/scenegraph/shaders/styledtext.vert18
-rw-r--r--src/quick/scenegraph/shaders/styledtext_core.frag18
-rw-r--r--src/quick/scenegraph/shaders/styledtext_core.vert20
-rw-r--r--src/quick/scenegraph/shaders/textmask.frag10
-rw-r--r--src/quick/scenegraph/shaders/textmask.vert15
-rw-r--r--src/quick/scenegraph/shaders/textmask_core.frag14
-rw-r--r--src/quick/scenegraph/shaders/textmask_core.vert17
-rw-r--r--src/quick/scenegraph/shaders/texture.frag9
-rw-r--r--src/quick/scenegraph/shaders/texture_core.frag13
-rw-r--r--src/quick/scenegraph/shaders/vertexcolor.frag6
-rw-r--r--src/quick/scenegraph/shaders/vertexcolor.vert13
-rw-r--r--src/quick/scenegraph/shaders/vertexcolor_core.frag10
-rw-r--r--src/quick/scenegraph/shaders/vertexcolor_core.vert15
66 files changed, 0 insertions, 1213 deletions
diff --git a/src/quick/scenegraph/shaders/24bittextmask.frag b/src/quick/scenegraph/shaders/24bittextmask.frag
deleted file mode 100644
index 5c21e202f9..0000000000
--- a/src/quick/scenegraph/shaders/24bittextmask.frag
+++ /dev/null
@@ -1,10 +0,0 @@
-varying highp vec2 sampleCoord;
-
-uniform lowp sampler2D _qt_texture;
-uniform lowp float color; // just the alpha, really...
-
-void main()
-{
- lowp vec4 glyph = texture2D(_qt_texture, sampleCoord);
- gl_FragColor = vec4(glyph.rgb * color, glyph.a);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/24bittextmask_core.frag b/src/quick/scenegraph/shaders/24bittextmask_core.frag
deleted file mode 100644
index 29d1f23017..0000000000
--- a/src/quick/scenegraph/shaders/24bittextmask_core.frag
+++ /dev/null
@@ -1,14 +0,0 @@
-#version 150 core
-
-in vec2 sampleCoord;
-
-out vec4 fragColor;
-
-uniform sampler2D _qt_texture;
-uniform float color; // just the alpha, really...
-
-void main()
-{
- vec4 glyph = texture(_qt_texture, sampleCoord);
- fragColor = vec4(glyph.rgb * color, glyph.a);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/32bitcolortext.frag b/src/quick/scenegraph/shaders/32bitcolortext.frag
deleted file mode 100644
index 6fdb6e6aeb..0000000000
--- a/src/quick/scenegraph/shaders/32bitcolortext.frag
+++ /dev/null
@@ -1,9 +0,0 @@
-varying highp vec2 sampleCoord;
-
-uniform sampler2D _qt_texture;
-uniform lowp float color; // just the alpha, really...
-
-void main()
-{
- gl_FragColor = texture2D(_qt_texture, sampleCoord) * color;
-}
diff --git a/src/quick/scenegraph/shaders/32bitcolortext_core.frag b/src/quick/scenegraph/shaders/32bitcolortext_core.frag
deleted file mode 100644
index 010aca97b4..0000000000
--- a/src/quick/scenegraph/shaders/32bitcolortext_core.frag
+++ /dev/null
@@ -1,13 +0,0 @@
-#version 150 core
-
-in vec2 sampleCoord;
-
-out vec4 fragColor;
-
-uniform sampler2D _qt_texture;
-uniform float color; // just the alpha, really...
-
-void main()
-{
- fragColor = texture(_qt_texture, sampleCoord) * color;
-}
diff --git a/src/quick/scenegraph/shaders/8bittextmask.frag b/src/quick/scenegraph/shaders/8bittextmask.frag
deleted file mode 100644
index 44ffb279cb..0000000000
--- a/src/quick/scenegraph/shaders/8bittextmask.frag
+++ /dev/null
@@ -1,9 +0,0 @@
-varying highp vec2 sampleCoord;
-
-uniform lowp sampler2D _qt_texture;
-uniform lowp vec4 color;
-
-void main()
-{
- gl_FragColor = color * texture2D(_qt_texture, sampleCoord).a;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/8bittextmask_core.frag b/src/quick/scenegraph/shaders/8bittextmask_core.frag
deleted file mode 100644
index 2d67a4676a..0000000000
--- a/src/quick/scenegraph/shaders/8bittextmask_core.frag
+++ /dev/null
@@ -1,13 +0,0 @@
-#version 150 core
-
-in vec2 sampleCoord;
-
-out vec4 fragColor;
-
-uniform sampler2D _qt_texture;
-uniform vec4 color;
-
-void main()
-{
- fragColor = color * texture(_qt_texture, sampleCoord).r;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/distancefieldoutlinetext.frag b/src/quick/scenegraph/shaders/distancefieldoutlinetext.frag
deleted file mode 100644
index 250ed322a1..0000000000
--- a/src/quick/scenegraph/shaders/distancefieldoutlinetext.frag
+++ /dev/null
@@ -1,16 +0,0 @@
-varying highp vec2 sampleCoord;
-
-uniform sampler2D _qt_texture;
-uniform lowp vec4 color;
-uniform lowp vec4 styleColor;
-uniform mediump float alphaMin;
-uniform mediump float alphaMax;
-uniform mediump float outlineAlphaMax0;
-uniform mediump float outlineAlphaMax1;
-
-void main()
-{
- mediump float d = texture2D(_qt_texture, sampleCoord).a;
- gl_FragColor = mix(styleColor, color, smoothstep(alphaMin, alphaMax, d))
- * smoothstep(outlineAlphaMax0, outlineAlphaMax1, d);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/distancefieldoutlinetext_core.frag b/src/quick/scenegraph/shaders/distancefieldoutlinetext_core.frag
deleted file mode 100644
index 80fa05ca3c..0000000000
--- a/src/quick/scenegraph/shaders/distancefieldoutlinetext_core.frag
+++ /dev/null
@@ -1,20 +0,0 @@
-#version 150 core
-
-in vec2 sampleCoord;
-
-out vec4 fragColor;
-
-uniform sampler2D _qt_texture;
-uniform vec4 color;
-uniform vec4 styleColor;
-uniform float alphaMin;
-uniform float alphaMax;
-uniform float outlineAlphaMax0;
-uniform float outlineAlphaMax1;
-
-void main()
-{
- float d = texture(_qt_texture, sampleCoord).r;
- fragColor = mix(styleColor, color, smoothstep(alphaMin, alphaMax, d))
- * smoothstep(outlineAlphaMax0, outlineAlphaMax1, d);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/distancefieldshiftedtext.frag b/src/quick/scenegraph/shaders/distancefieldshiftedtext.frag
deleted file mode 100644
index 42fead8713..0000000000
--- a/src/quick/scenegraph/shaders/distancefieldshiftedtext.frag
+++ /dev/null
@@ -1,17 +0,0 @@
-varying highp vec2 sampleCoord;
-varying highp vec2 shiftedSampleCoord;
-
-uniform mediump sampler2D _qt_texture;
-uniform lowp vec4 color;
-uniform lowp vec4 styleColor;
-uniform mediump float alphaMin;
-uniform mediump float alphaMax;
-
-void main()
-{
- highp float a = smoothstep(alphaMin, alphaMax, texture2D(_qt_texture, sampleCoord).a);
- highp vec4 shifted = styleColor * smoothstep(alphaMin,
- alphaMax,
- texture2D(_qt_texture, shiftedSampleCoord).a);
- gl_FragColor = mix(shifted, color, a);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/distancefieldshiftedtext.vert b/src/quick/scenegraph/shaders/distancefieldshiftedtext.vert
deleted file mode 100644
index 800eadc4f1..0000000000
--- a/src/quick/scenegraph/shaders/distancefieldshiftedtext.vert
+++ /dev/null
@@ -1,17 +0,0 @@
-uniform highp mat4 matrix;
-uniform highp vec2 textureScale;
-
-attribute highp vec4 vCoord;
-attribute highp vec2 tCoord;
-
-uniform highp vec2 shift;
-
-varying highp vec2 sampleCoord;
-varying highp vec2 shiftedSampleCoord;
-
-void main()
-{
- sampleCoord = tCoord * textureScale;
- shiftedSampleCoord = (tCoord - shift) * textureScale;
- gl_Position = matrix * vCoord;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/distancefieldshiftedtext_core.frag b/src/quick/scenegraph/shaders/distancefieldshiftedtext_core.frag
deleted file mode 100644
index 3f66965e78..0000000000
--- a/src/quick/scenegraph/shaders/distancefieldshiftedtext_core.frag
+++ /dev/null
@@ -1,20 +0,0 @@
-#version 150 core
-
-in vec2 sampleCoord;
-in vec2 shiftedSampleCoord;
-
-out vec4 fragColor;
-
-uniform sampler2D _qt_texture;
-uniform vec4 color;
-uniform vec4 styleColor;
-uniform float alphaMin;
-uniform float alphaMax;
-
-void main()
-{
- float a = smoothstep(alphaMin, alphaMax, texture(_qt_texture, sampleCoord).r);
- vec4 shifted = styleColor * smoothstep(alphaMin, alphaMax,
- texture(_qt_texture, shiftedSampleCoord).r);
- fragColor = mix(shifted, color, a);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/distancefieldshiftedtext_core.vert b/src/quick/scenegraph/shaders/distancefieldshiftedtext_core.vert
deleted file mode 100644
index b7a3ecc667..0000000000
--- a/src/quick/scenegraph/shaders/distancefieldshiftedtext_core.vert
+++ /dev/null
@@ -1,18 +0,0 @@
-#version 150 core
-
-in vec4 vCoord;
-in vec2 tCoord;
-
-out vec2 sampleCoord;
-out vec2 shiftedSampleCoord;
-
-uniform mat4 matrix;
-uniform vec2 textureScale;
-uniform vec2 shift;
-
-void main()
-{
- sampleCoord = tCoord * textureScale;
- shiftedSampleCoord = (tCoord - shift) * textureScale;
- gl_Position = matrix * vCoord;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/distancefieldtext.frag b/src/quick/scenegraph/shaders/distancefieldtext.frag
deleted file mode 100644
index 951fb2a825..0000000000
--- a/src/quick/scenegraph/shaders/distancefieldtext.frag
+++ /dev/null
@@ -1,13 +0,0 @@
-varying highp vec2 sampleCoord;
-
-uniform mediump sampler2D _qt_texture;
-uniform lowp vec4 color;
-uniform mediump float alphaMin;
-uniform mediump float alphaMax;
-
-void main()
-{
- gl_FragColor = color * smoothstep(alphaMin,
- alphaMax,
- texture2D(_qt_texture, sampleCoord).a);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/distancefieldtext.vert b/src/quick/scenegraph/shaders/distancefieldtext.vert
deleted file mode 100644
index c4963977a5..0000000000
--- a/src/quick/scenegraph/shaders/distancefieldtext.vert
+++ /dev/null
@@ -1,13 +0,0 @@
-uniform highp mat4 matrix;
-uniform highp vec2 textureScale;
-
-attribute highp vec4 vCoord;
-attribute highp vec2 tCoord;
-
-varying highp vec2 sampleCoord;
-
-void main()
-{
- sampleCoord = tCoord * textureScale;
- gl_Position = matrix * vCoord;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/distancefieldtext_core.frag b/src/quick/scenegraph/shaders/distancefieldtext_core.frag
deleted file mode 100644
index 9c64a60d3d..0000000000
--- a/src/quick/scenegraph/shaders/distancefieldtext_core.frag
+++ /dev/null
@@ -1,16 +0,0 @@
-#version 150 core
-
-in vec2 sampleCoord;
-
-out vec4 fragColor;
-
-uniform sampler2D _qt_texture;
-uniform vec4 color;
-uniform float alphaMin;
-uniform float alphaMax;
-
-void main()
-{
- fragColor = color * smoothstep(alphaMin, alphaMax,
- texture(_qt_texture, sampleCoord).r);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/distancefieldtext_core.vert b/src/quick/scenegraph/shaders/distancefieldtext_core.vert
deleted file mode 100644
index 7fc693d139..0000000000
--- a/src/quick/scenegraph/shaders/distancefieldtext_core.vert
+++ /dev/null
@@ -1,15 +0,0 @@
-#version 150 core
-
-in vec4 vCoord;
-in vec2 tCoord;
-
-out vec2 sampleCoord;
-
-uniform mat4 matrix;
-uniform vec2 textureScale;
-
-void main()
-{
- sampleCoord = tCoord * textureScale;
- gl_Position = matrix * vCoord;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/flatcolor.frag b/src/quick/scenegraph/shaders/flatcolor.frag
deleted file mode 100644
index 8c225bf5a4..0000000000
--- a/src/quick/scenegraph/shaders/flatcolor.frag
+++ /dev/null
@@ -1,6 +0,0 @@
-uniform lowp vec4 color;
-
-void main()
-{
- gl_FragColor = color;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/flatcolor.vert b/src/quick/scenegraph/shaders/flatcolor.vert
deleted file mode 100644
index a61de97f85..0000000000
--- a/src/quick/scenegraph/shaders/flatcolor.vert
+++ /dev/null
@@ -1,7 +0,0 @@
-attribute highp vec4 vCoord;
-uniform highp mat4 matrix;
-
-void main()
-{
- gl_Position = matrix * vCoord;
-}
diff --git a/src/quick/scenegraph/shaders/flatcolor_core.frag b/src/quick/scenegraph/shaders/flatcolor_core.frag
deleted file mode 100644
index 23a957ad7b..0000000000
--- a/src/quick/scenegraph/shaders/flatcolor_core.frag
+++ /dev/null
@@ -1,10 +0,0 @@
-#version 150 core
-
-out vec4 fragColor;
-
-uniform vec4 color;
-
-void main()
-{
- fragColor = color;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/flatcolor_core.vert b/src/quick/scenegraph/shaders/flatcolor_core.vert
deleted file mode 100644
index e33c591b95..0000000000
--- a/src/quick/scenegraph/shaders/flatcolor_core.vert
+++ /dev/null
@@ -1,10 +0,0 @@
-#version 150 core
-
-in vec4 vCoord;
-
-uniform mat4 matrix;
-
-void main()
-{
- gl_Position = matrix * vCoord;
-}
diff --git a/src/quick/scenegraph/shaders/hiqsubpixeldistancefieldtext.frag b/src/quick/scenegraph/shaders/hiqsubpixeldistancefieldtext.frag
deleted file mode 100644
index 9b65e5f79b..0000000000
--- a/src/quick/scenegraph/shaders/hiqsubpixeldistancefieldtext.frag
+++ /dev/null
@@ -1,58 +0,0 @@
-varying highp vec2 sampleCoord;
-varying highp vec3 sampleFarLeft;
-varying highp vec3 sampleNearLeft;
-varying highp vec3 sampleNearRight;
-varying highp vec3 sampleFarRight;
-
-uniform sampler2D _qt_texture;
-uniform lowp vec4 color;
-uniform mediump float alphaMin;
-uniform mediump float alphaMax;
-
-void main()
-{
- highp vec4 n;
- n.x = texture2DProj(_qt_texture, sampleFarLeft).a;
- n.y = texture2DProj(_qt_texture, sampleNearLeft).a;
- highp float c = texture2D(_qt_texture, sampleCoord).a;
- n.z = texture2DProj(_qt_texture, sampleNearRight).a;
- n.w = texture2DProj(_qt_texture, sampleFarRight).a;
-#if 0
- // Blurrier, faster.
- n = smoothstep(alphaMin, alphaMax, n);
- c = smoothstep(alphaMin, alphaMax, c);
-#else
- // Sharper, slower.
- highp vec2 d = min(abs(n.yw - n.xz) * 2., 0.67);
- highp vec2 lo = mix(vec2(alphaMin), vec2(0.5), d);
- highp vec2 hi = mix(vec2(alphaMax), vec2(0.5), d);
- n = smoothstep(lo.xxyy, hi.xxyy, n);
- c = smoothstep(lo.x + lo.y, hi.x + hi.y, 2. * c);
-#endif
- gl_FragColor = vec4(0.333 * (n.xyz + n.yzw + c), c) * color.w;
-}
-
-/*
-#extension GL_OES_standard_derivatives: enable
-
-varying highp vec2 sampleCoord;
-
-uniform sampler2D _qt_texture;
-uniform lowp vec4 color;
-uniform highp float alphaMin;
-uniform highp float alphaMax;
-
-void main()
-{
- highp vec2 delta = dFdx(sampleCoord);
- highp vec4 n;
- n.x = texture2D(_qt_texture, sampleCoord - 0.667 * delta).a;
- n.y = texture2D(_qt_texture, sampleCoord - 0.333 * delta).a;
- highp float c = texture2D(_qt_texture, sampleCoord).a;
- n.z = texture2D(_qt_texture, sampleCoord + 0.333 * delta).a;
- n.w = texture2D(_qt_texture, sampleCoord + 0.667 * delta).a;
- n = smoothstep(alphaMin, alphaMax, n);
- c = smoothstep(alphaMin, alphaMax, c);
- gl_FragColor = vec4(0.333 * (n.xyz + n.yzw + c), c) * color.w;
-};
-*/ \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/hiqsubpixeldistancefieldtext.vert b/src/quick/scenegraph/shaders/hiqsubpixeldistancefieldtext.vert
deleted file mode 100644
index 62768e88e1..0000000000
--- a/src/quick/scenegraph/shaders/hiqsubpixeldistancefieldtext.vert
+++ /dev/null
@@ -1,34 +0,0 @@
-uniform highp mat4 matrix;
-uniform highp vec2 textureScale;
-uniform highp float fontScale;
-uniform highp vec4 vecDelta;
-
-attribute highp vec4 vCoord;
-attribute highp vec2 tCoord;
-
-varying highp vec2 sampleCoord;
-varying highp vec3 sampleFarLeft;
-varying highp vec3 sampleNearLeft;
-varying highp vec3 sampleNearRight;
-varying highp vec3 sampleFarRight;
-
-void main()
-{
- sampleCoord = tCoord * textureScale;
- gl_Position = matrix * vCoord;
-
- // Calculate neighbor pixel position in item space.
- highp vec3 wDelta = gl_Position.w * vecDelta.xyw;
- highp vec3 farLeft = vCoord.xyw - 0.667 * wDelta;
- highp vec3 nearLeft = vCoord.xyw - 0.333 * wDelta;
- highp vec3 nearRight = vCoord.xyw + 0.333 * wDelta;
- highp vec3 farRight = vCoord.xyw + 0.667 * wDelta;
-
- // Calculate neighbor texture coordinate.
- highp vec2 scale = textureScale / fontScale;
- highp vec2 base = sampleCoord - scale * vCoord.xy;
- sampleFarLeft = vec3(base * farLeft.z + scale * farLeft.xy, farLeft.z);
- sampleNearLeft = vec3(base * nearLeft.z + scale * nearLeft.xy, nearLeft.z);
- sampleNearRight = vec3(base * nearRight.z + scale * nearRight.xy, nearRight.z);
- sampleFarRight = vec3(base * farRight.z + scale * farRight.xy, farRight.z);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/hiqsubpixeldistancefieldtext_core.frag b/src/quick/scenegraph/shaders/hiqsubpixeldistancefieldtext_core.frag
deleted file mode 100644
index cf6ba2b8d9..0000000000
--- a/src/quick/scenegraph/shaders/hiqsubpixeldistancefieldtext_core.frag
+++ /dev/null
@@ -1,32 +0,0 @@
-#version 150 core
-
-in vec2 sampleCoord;
-in vec3 sampleFarLeft;
-in vec3 sampleNearLeft;
-in vec3 sampleNearRight;
-in vec3 sampleFarRight;
-
-out vec4 fragColor;
-
-uniform sampler2D _qt_texture;
-uniform vec4 color;
-uniform float alphaMin;
-uniform float alphaMax;
-
-void main()
-{
- vec4 n;
- n.x = textureProj(_qt_texture, sampleFarLeft).r;
- n.y = textureProj(_qt_texture, sampleNearLeft).r;
- float c = texture(_qt_texture, sampleCoord).r;
- n.z = textureProj(_qt_texture, sampleNearRight).r;
- n.w = textureProj(_qt_texture, sampleFarRight).r;
-
- vec2 d = min(abs(n.yw - n.xz) * 2., 0.67);
- vec2 lo = mix(vec2(alphaMin), vec2(0.5), d);
- vec2 hi = mix(vec2(alphaMax), vec2(0.5), d);
- n = smoothstep(lo.xxyy, hi.xxyy, n);
- c = smoothstep(lo.x + lo.y, hi.x + hi.y, 2. * c);
-
- fragColor = vec4(0.333 * (n.xyz + n.yzw + c), c) * color.w;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/hiqsubpixeldistancefieldtext_core.vert b/src/quick/scenegraph/shaders/hiqsubpixeldistancefieldtext_core.vert
deleted file mode 100644
index 936f74725b..0000000000
--- a/src/quick/scenegraph/shaders/hiqsubpixeldistancefieldtext_core.vert
+++ /dev/null
@@ -1,36 +0,0 @@
-#version 150 core
-
-in vec4 vCoord;
-in vec2 tCoord;
-
-out vec2 sampleCoord;
-out vec3 sampleFarLeft;
-out vec3 sampleNearLeft;
-out vec3 sampleNearRight;
-out vec3 sampleFarRight;
-
-uniform mat4 matrix;
-uniform vec2 textureScale;
-uniform float fontScale;
-uniform vec4 vecDelta;
-
-void main()
-{
- sampleCoord = tCoord * textureScale;
- gl_Position = matrix * vCoord;
-
- // Calculate neighbor pixel position in item space.
- vec3 wDelta = gl_Position.w * vecDelta.xyw;
- vec3 farLeft = vCoord.xyw - 0.667 * wDelta;
- vec3 nearLeft = vCoord.xyw - 0.333 * wDelta;
- vec3 nearRight = vCoord.xyw + 0.333 * wDelta;
- vec3 farRight = vCoord.xyw + 0.667 * wDelta;
-
- // Calculate neighbor texture coordinate.
- vec2 scale = textureScale / fontScale;
- vec2 base = sampleCoord - scale * vCoord.xy;
- sampleFarLeft = vec3(base * farLeft.z + scale * farLeft.xy, farLeft.z);
- sampleNearLeft = vec3(base * nearLeft.z + scale * nearLeft.xy, nearLeft.z);
- sampleNearRight = vec3(base * nearRight.z + scale * nearRight.xy, nearRight.z);
- sampleFarRight = vec3(base * farRight.z + scale * farRight.xy, farRight.z);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/loqsubpixeldistancefieldtext.frag b/src/quick/scenegraph/shaders/loqsubpixeldistancefieldtext.frag
deleted file mode 100644
index 61b6c8dd9a..0000000000
--- a/src/quick/scenegraph/shaders/loqsubpixeldistancefieldtext.frag
+++ /dev/null
@@ -1,17 +0,0 @@
-varying highp vec3 sampleNearLeft;
-varying highp vec3 sampleNearRight;
-
-uniform sampler2D _qt_texture;
-uniform lowp vec4 color;
-uniform mediump float alphaMin;
-uniform mediump float alphaMax;
-
-void main()
-{
- highp vec2 n;
- n.x = texture2DProj(_qt_texture, sampleNearLeft).a;
- n.y = texture2DProj(_qt_texture, sampleNearRight).a;
- n = smoothstep(alphaMin, alphaMax, n);
- highp float c = 0.5 * (n.x + n.y);
- gl_FragColor = vec4(n.x, c, n.y, c) * color.w;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/loqsubpixeldistancefieldtext.vert b/src/quick/scenegraph/shaders/loqsubpixeldistancefieldtext.vert
deleted file mode 100644
index 33cb7efb19..0000000000
--- a/src/quick/scenegraph/shaders/loqsubpixeldistancefieldtext.vert
+++ /dev/null
@@ -1,27 +0,0 @@
-uniform highp mat4 matrix;
-uniform highp vec2 textureScale;
-uniform highp float fontScale;
-uniform highp vec4 vecDelta;
-
-attribute highp vec4 vCoord;
-attribute highp vec2 tCoord;
-
-varying highp vec3 sampleNearLeft;
-varying highp vec3 sampleNearRight;
-
-void main()
-{
- highp vec2 sampleCoord = tCoord * textureScale;
- gl_Position = matrix * vCoord;
-
- // Calculate neighbor pixel position in item space.
- highp vec3 wDelta = gl_Position.w * vecDelta.xyw;
- highp vec3 nearLeft = vCoord.xyw - 0.25 * wDelta;
- highp vec3 nearRight = vCoord.xyw + 0.25 * wDelta;
-
- // Calculate neighbor texture coordinate.
- highp vec2 scale = textureScale / fontScale;
- highp vec2 base = sampleCoord - scale * vCoord.xy;
- sampleNearLeft = vec3(base * nearLeft.z + scale * nearLeft.xy, nearLeft.z);
- sampleNearRight = vec3(base * nearRight.z + scale * nearRight.xy, nearRight.z);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/loqsubpixeldistancefieldtext_core.frag b/src/quick/scenegraph/shaders/loqsubpixeldistancefieldtext_core.frag
deleted file mode 100644
index 2dd588d307..0000000000
--- a/src/quick/scenegraph/shaders/loqsubpixeldistancefieldtext_core.frag
+++ /dev/null
@@ -1,21 +0,0 @@
-#version 150 core
-
-in vec3 sampleNearLeft;
-in vec3 sampleNearRight;
-
-out vec4 fragColor;
-
-uniform sampler2D _qt_texture;
-uniform vec4 color;
-uniform float alphaMin;
-uniform float alphaMax;
-
-void main()
-{
- vec2 n;
- n.x = textureProj(_qt_texture, sampleNearLeft).r;
- n.y = textureProj(_qt_texture, sampleNearRight).r;
- n = smoothstep(alphaMin, alphaMax, n);
- float c = 0.5 * (n.x + n.y);
- fragColor = vec4(n.x, c, n.y, c) * color.w;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/loqsubpixeldistancefieldtext_core.vert b/src/quick/scenegraph/shaders/loqsubpixeldistancefieldtext_core.vert
deleted file mode 100644
index b887a70001..0000000000
--- a/src/quick/scenegraph/shaders/loqsubpixeldistancefieldtext_core.vert
+++ /dev/null
@@ -1,29 +0,0 @@
-#version 150 core
-
-in vec4 vCoord;
-in vec2 tCoord;
-
-out vec3 sampleNearLeft;
-out vec3 sampleNearRight;
-
-uniform mat4 matrix;
-uniform vec2 textureScale;
-uniform float fontScale;
-uniform vec4 vecDelta;
-
-void main()
-{
- vec2 sampleCoord = tCoord * textureScale;
- gl_Position = matrix * vCoord;
-
- // Calculate neighbor pixel position in item space.
- vec3 wDelta = gl_Position.w * vecDelta.xyw;
- vec3 nearLeft = vCoord.xyw - 0.25 * wDelta;
- vec3 nearRight = vCoord.xyw + 0.25 * wDelta;
-
- // Calculate neighbor texture coordinate.
- vec2 scale = textureScale / fontScale;
- vec2 base = sampleCoord - scale * vCoord.xy;
- sampleNearLeft = vec3(base * nearLeft.z + scale * nearLeft.xy, nearLeft.z);
- sampleNearRight = vec3(base * nearRight.z + scale * nearRight.xy, nearRight.z);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/opaquetexture.frag b/src/quick/scenegraph/shaders/opaquetexture.frag
deleted file mode 100644
index b7e07de385..0000000000
--- a/src/quick/scenegraph/shaders/opaquetexture.frag
+++ /dev/null
@@ -1,8 +0,0 @@
-varying highp vec2 qt_TexCoord;
-
-uniform sampler2D qt_Texture;
-
-void main()
-{
- gl_FragColor = texture2D(qt_Texture, qt_TexCoord);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/opaquetexture.vert b/src/quick/scenegraph/shaders/opaquetexture.vert
deleted file mode 100644
index 32cf02df25..0000000000
--- a/src/quick/scenegraph/shaders/opaquetexture.vert
+++ /dev/null
@@ -1,12 +0,0 @@
-uniform highp mat4 qt_Matrix;
-
-attribute highp vec4 qt_VertexPosition;
-attribute highp vec2 qt_VertexTexCoord;
-
-varying highp vec2 qt_TexCoord;
-
-void main()
-{
- qt_TexCoord = qt_VertexTexCoord;
- gl_Position = qt_Matrix * qt_VertexPosition;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/opaquetexture_core.frag b/src/quick/scenegraph/shaders/opaquetexture_core.frag
deleted file mode 100644
index 5f30e68677..0000000000
--- a/src/quick/scenegraph/shaders/opaquetexture_core.frag
+++ /dev/null
@@ -1,12 +0,0 @@
-#version 150 core
-
-in vec2 qt_TexCoord;
-
-out vec4 fragColor;
-
-uniform sampler2D qt_Texture;
-
-void main()
-{
- fragColor = texture(qt_Texture, qt_TexCoord);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/opaquetexture_core.vert b/src/quick/scenegraph/shaders/opaquetexture_core.vert
deleted file mode 100644
index 419b1a825c..0000000000
--- a/src/quick/scenegraph/shaders/opaquetexture_core.vert
+++ /dev/null
@@ -1,14 +0,0 @@
-#version 150 core
-
-uniform mat4 qt_Matrix;
-
-in vec4 qt_VertexPosition;
-in vec2 qt_VertexTexCoord;
-
-out vec2 qt_TexCoord;
-
-void main()
-{
- qt_TexCoord = qt_VertexTexCoord;
- gl_Position = qt_Matrix * qt_VertexPosition;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/outlinedtext.frag b/src/quick/scenegraph/shaders/outlinedtext.frag
deleted file mode 100644
index b3e5475d5d..0000000000
--- a/src/quick/scenegraph/shaders/outlinedtext.frag
+++ /dev/null
@@ -1,21 +0,0 @@
-varying highp vec2 sampleCoord;
-varying highp vec2 sCoordUp;
-varying highp vec2 sCoordDown;
-varying highp vec2 sCoordLeft;
-varying highp vec2 sCoordRight;
-
-uniform sampler2D _qt_texture;
-uniform lowp vec4 color;
-uniform lowp vec4 styleColor;
-
-void main()
-{
- lowp float glyph = texture2D(_qt_texture, sampleCoord).a;
- lowp float outline = clamp(clamp(texture2D(_qt_texture, sCoordUp).a +
- texture2D(_qt_texture, sCoordDown).a +
- texture2D(_qt_texture, sCoordLeft).a +
- texture2D(_qt_texture, sCoordRight).a,
- 0.0, 1.0) - glyph,
- 0.0, 1.0);
- gl_FragColor = outline * styleColor + glyph * color;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/outlinedtext.vert b/src/quick/scenegraph/shaders/outlinedtext.vert
deleted file mode 100644
index 9df832de3c..0000000000
--- a/src/quick/scenegraph/shaders/outlinedtext.vert
+++ /dev/null
@@ -1,24 +0,0 @@
-uniform highp mat4 matrix;
-uniform highp vec2 textureScale;
-uniform highp vec2 shift;
-uniform highp float dpr;
-
-attribute highp vec4 vCoord;
-attribute highp vec2 tCoord;
-
-varying highp vec2 sampleCoord;
-varying highp vec2 sCoordUp;
-varying highp vec2 sCoordDown;
-varying highp vec2 sCoordLeft;
-varying highp vec2 sCoordRight;
-
-void main()
-{
- sampleCoord = tCoord * textureScale;
- sCoordUp = (tCoord - vec2(0.0, -1.0)) * textureScale;
- sCoordDown = (tCoord - vec2(0.0, 1.0)) * textureScale;
- sCoordLeft = (tCoord - vec2(-1.0, 0.0)) * textureScale;
- sCoordRight = (tCoord - vec2(1.0, 0.0)) * textureScale;
- vec3 dprSnapPos = floor(vCoord.xyz * dpr + 0.5) / dpr;
- gl_Position = matrix * vec4(dprSnapPos, vCoord.w);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/outlinedtext_core.frag b/src/quick/scenegraph/shaders/outlinedtext_core.frag
deleted file mode 100644
index e19c8937f9..0000000000
--- a/src/quick/scenegraph/shaders/outlinedtext_core.frag
+++ /dev/null
@@ -1,25 +0,0 @@
-#version 150 core
-
-in vec2 sampleCoord;
-in vec2 sCoordUp;
-in vec2 sCoordDown;
-in vec2 sCoordLeft;
-in vec2 sCoordRight;
-
-out vec4 fragColor;
-
-uniform sampler2D _qt_texture;
-uniform vec4 color;
-uniform vec4 styleColor;
-
-void main()
-{
- float glyph = texture(_qt_texture, sampleCoord).r;
- float outline = clamp(clamp(texture(_qt_texture, sCoordUp).r +
- texture(_qt_texture, sCoordDown).r +
- texture(_qt_texture, sCoordLeft).r +
- texture(_qt_texture, sCoordRight).r,
- 0.0, 1.0) - glyph,
- 0.0, 1.0);
- fragColor = outline * styleColor + glyph * color;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/outlinedtext_core.vert b/src/quick/scenegraph/shaders/outlinedtext_core.vert
deleted file mode 100644
index a854355460..0000000000
--- a/src/quick/scenegraph/shaders/outlinedtext_core.vert
+++ /dev/null
@@ -1,26 +0,0 @@
-#version 150 core
-
-in vec4 vCoord;
-in vec2 tCoord;
-
-out vec2 sampleCoord;
-out vec2 sCoordUp;
-out vec2 sCoordDown;
-out vec2 sCoordLeft;
-out vec2 sCoordRight;
-
-uniform mat4 matrix;
-uniform vec2 textureScale;
-uniform vec2 shift;
-uniform float dpr;
-
-void main()
-{
- sampleCoord = tCoord * textureScale;
- sCoordUp = (tCoord - vec2(0.0, -1.0)) * textureScale;
- sCoordDown = (tCoord - vec2(0.0, 1.0)) * textureScale;
- sCoordLeft = (tCoord - vec2(-1.0, 0.0)) * textureScale;
- sCoordRight = (tCoord - vec2(1.0, 0.0)) * textureScale;
- vec3 dprSnapPos = floor(vCoord.xyz * dpr + 0.5) / dpr;
- gl_Position = matrix * vec4(dprSnapPos, vCoord.w);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/rendernode.frag b/src/quick/scenegraph/shaders/rendernode.frag
deleted file mode 100644
index b4e9b0209c..0000000000
--- a/src/quick/scenegraph/shaders/rendernode.frag
+++ /dev/null
@@ -1,8 +0,0 @@
-uniform lowp sampler2D tex;
-
-varying highp vec2 t;
-
-void main()
-{
- gl_FragColor = texture2D(tex, t);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/rendernode.vert b/src/quick/scenegraph/shaders/rendernode.vert
deleted file mode 100644
index fbfe9ef8ae..0000000000
--- a/src/quick/scenegraph/shaders/rendernode.vert
+++ /dev/null
@@ -1,10 +0,0 @@
-attribute highp vec4 av;
-attribute highp vec2 at;
-
-varying highp vec2 t;
-
-void main()
-{
- gl_Position = av;
- t = at;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/rendernode_core.frag b/src/quick/scenegraph/shaders/rendernode_core.frag
deleted file mode 100644
index b29301b058..0000000000
--- a/src/quick/scenegraph/shaders/rendernode_core.frag
+++ /dev/null
@@ -1,12 +0,0 @@
-#version 150 core
-
-uniform sampler2D tex;
-
-in vec2 t;
-
-out vec4 fragColor;
-
-void main()
-{
- fragColor = texture(tex, t);
-}
diff --git a/src/quick/scenegraph/shaders/rendernode_core.vert b/src/quick/scenegraph/shaders/rendernode_core.vert
deleted file mode 100644
index a76d519a5a..0000000000
--- a/src/quick/scenegraph/shaders/rendernode_core.vert
+++ /dev/null
@@ -1,12 +0,0 @@
-#version 150 core
-
-in vec4 av;
-in vec2 at;
-
-out vec2 t;
-
-void main()
-{
- gl_Position = av;
- t = at;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/smoothcolor.frag b/src/quick/scenegraph/shaders/smoothcolor.frag
deleted file mode 100644
index 71de9dbfc2..0000000000
--- a/src/quick/scenegraph/shaders/smoothcolor.frag
+++ /dev/null
@@ -1,6 +0,0 @@
-varying lowp vec4 color;
-
-void main()
-{
- gl_FragColor = color;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/smoothcolor.vert b/src/quick/scenegraph/shaders/smoothcolor.vert
deleted file mode 100644
index df70fea92a..0000000000
--- a/src/quick/scenegraph/shaders/smoothcolor.vert
+++ /dev/null
@@ -1,45 +0,0 @@
-uniform highp vec2 pixelSize;
-uniform highp mat4 matrix;
-uniform lowp float opacity;
-
-attribute highp vec4 vertex;
-attribute lowp vec4 vertexColor;
-attribute highp vec2 vertexOffset;
-
-varying lowp vec4 color;
-
-void main()
-{
- highp vec4 pos = matrix * vertex;
- gl_Position = pos;
-
- if (vertexOffset.x != 0.) {
- highp vec4 delta = matrix[0] * vertexOffset.x;
- highp vec2 dir = delta.xy * pos.w - pos.xy * delta.w;
- highp vec2 ndir = .5 * pixelSize * normalize(dir / pixelSize);
- dir -= ndir * delta.w * pos.w;
- highp float numerator = dot(dir, ndir * pos.w * pos.w);
- highp float scale = 0.0;
- if (numerator < 0.0)
- scale = 1.0;
- else
- scale = min(1.0, numerator / dot(dir, dir));
- gl_Position += scale * delta;
- }
-
- if (vertexOffset.y != 0.) {
- highp vec4 delta = matrix[1] * vertexOffset.y;
- highp vec2 dir = delta.xy * pos.w - pos.xy * delta.w;
- highp vec2 ndir = .5 * pixelSize * normalize(dir / pixelSize);
- dir -= ndir * delta.w * pos.w;
- highp float numerator = dot(dir, ndir * pos.w * pos.w);
- highp float scale = 0.0;
- if (numerator < 0.0)
- scale = 1.0;
- else
- scale = min(1.0, numerator / dot(dir, dir));
- gl_Position += scale * delta;
- }
-
- color = vertexColor * opacity;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/smoothcolor_core.frag b/src/quick/scenegraph/shaders/smoothcolor_core.frag
deleted file mode 100644
index 84533c2b40..0000000000
--- a/src/quick/scenegraph/shaders/smoothcolor_core.frag
+++ /dev/null
@@ -1,10 +0,0 @@
-#version 150 core
-
-in vec4 color;
-
-out vec4 fragColor;
-
-void main()
-{
- fragColor = color;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/smoothcolor_core.vert b/src/quick/scenegraph/shaders/smoothcolor_core.vert
deleted file mode 100644
index 1eed751ccd..0000000000
--- a/src/quick/scenegraph/shaders/smoothcolor_core.vert
+++ /dev/null
@@ -1,47 +0,0 @@
-#version 150 core
-
-in vec4 vertex;
-in vec4 vertexColor;
-in vec2 vertexOffset;
-
-out vec4 color;
-
-uniform vec2 pixelSize;
-uniform mat4 matrix;
-uniform float opacity;
-
-void main()
-{
- vec4 pos = matrix * vertex;
- gl_Position = pos;
-
- if (vertexOffset.x != 0.) {
- vec4 delta = matrix[0] * vertexOffset.x;
- vec2 dir = delta.xy * pos.w - pos.xy * delta.w;
- vec2 ndir = .5 * pixelSize * normalize(dir / pixelSize);
- dir -= ndir * delta.w * pos.w;
- float numerator = dot(dir, ndir * pos.w * pos.w);
- float scale = 0.0;
- if (numerator < 0.0)
- scale = 1.0;
- else
- scale = min(1.0, numerator / dot(dir, dir));
- gl_Position += scale * delta;
- }
-
- if (vertexOffset.y != 0.) {
- vec4 delta = matrix[1] * vertexOffset.y;
- vec2 dir = delta.xy * pos.w - pos.xy * delta.w;
- vec2 ndir = .5 * pixelSize * normalize(dir / pixelSize);
- dir -= ndir * delta.w * pos.w;
- float numerator = dot(dir, ndir * pos.w * pos.w);
- float scale = 0.0;
- if (numerator < 0.0)
- scale = 1.0;
- else
- scale = min(1.0, numerator / dot(dir, dir));
- gl_Position += scale * delta;
- }
-
- color = vertexColor * opacity;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/smoothtexture.frag b/src/quick/scenegraph/shaders/smoothtexture.frag
deleted file mode 100644
index e4f6359f3d..0000000000
--- a/src/quick/scenegraph/shaders/smoothtexture.frag
+++ /dev/null
@@ -1,9 +0,0 @@
-uniform sampler2D qt_Texture;
-
-varying highp vec2 texCoord;
-varying lowp float vertexOpacity;
-
-void main()
-{
- gl_FragColor = texture2D(qt_Texture, texCoord) * vertexOpacity;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/smoothtexture.vert b/src/quick/scenegraph/shaders/smoothtexture.vert
deleted file mode 100644
index 900fbc6a72..0000000000
--- a/src/quick/scenegraph/shaders/smoothtexture.vert
+++ /dev/null
@@ -1,55 +0,0 @@
-uniform highp vec2 pixelSize;
-uniform highp mat4 qt_Matrix;
-uniform lowp float opacity;
-
-attribute highp vec4 vertex;
-attribute highp vec2 multiTexCoord;
-attribute highp vec2 vertexOffset;
-attribute highp vec2 texCoordOffset;
-
-varying highp vec2 texCoord;
-varying lowp float vertexOpacity;
-
-void main()
-{
- highp vec4 pos = qt_Matrix * vertex;
- gl_Position = pos;
- texCoord = multiTexCoord;
-
- if (vertexOffset.x != 0.) {
- highp vec4 delta = qt_Matrix[0] * vertexOffset.x;
- highp vec2 dir = delta.xy * pos.w - pos.xy * delta.w;
- highp vec2 ndir = .5 * pixelSize * normalize(dir / pixelSize);
- dir -= ndir * delta.w * pos.w;
- highp float numerator = dot(dir, ndir * pos.w * pos.w);
- highp float scale = 0.0;
- if (numerator < 0.0)
- scale = 1.0;
- else
- scale = min(1.0, numerator / dot(dir, dir));
- gl_Position += scale * delta;
- texCoord.x += scale * texCoordOffset.x;
- }
-
- if (vertexOffset.y != 0.) {
- highp vec4 delta = qt_Matrix[1] * vertexOffset.y;
- highp vec2 dir = delta.xy * pos.w - pos.xy * delta.w;
- highp vec2 ndir = .5 * pixelSize * normalize(dir / pixelSize);
- dir -= ndir * delta.w * pos.w;
- highp float numerator = dot(dir, ndir * pos.w * pos.w);
- highp float scale = 0.0;
- if (numerator < 0.0)
- scale = 1.0;
- else
- scale = min(1.0, numerator / dot(dir, dir));
- gl_Position += scale * delta;
- texCoord.y += scale * texCoordOffset.y;
- }
-
- bool onEdge = any(notEqual(vertexOffset, vec2(0.)));
- bool outerEdge = all(equal(texCoordOffset, vec2(0.)));
- if (onEdge && outerEdge)
- vertexOpacity = 0.;
- else
- vertexOpacity = opacity;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/smoothtexture_core.frag b/src/quick/scenegraph/shaders/smoothtexture_core.frag
deleted file mode 100644
index 8a9aefd4c8..0000000000
--- a/src/quick/scenegraph/shaders/smoothtexture_core.frag
+++ /dev/null
@@ -1,13 +0,0 @@
-#version 150 core
-
-in vec2 texCoord;
-in float vertexOpacity;
-
-out vec4 fragColor;
-
-uniform sampler2D qt_Texture;
-
-void main()
-{
- fragColor = texture(qt_Texture, texCoord) * vertexOpacity;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/smoothtexture_core.vert b/src/quick/scenegraph/shaders/smoothtexture_core.vert
deleted file mode 100644
index 6821398e57..0000000000
--- a/src/quick/scenegraph/shaders/smoothtexture_core.vert
+++ /dev/null
@@ -1,57 +0,0 @@
-#version 150 core
-
-in vec4 vertex;
-in vec2 multiTexCoord;
-in vec2 vertexOffset;
-in vec2 texCoordOffset;
-
-out vec2 texCoord;
-out float vertexOpacity;
-
-uniform vec2 pixelSize;
-uniform mat4 qt_Matrix;
-uniform float opacity;
-
-void main()
-{
- vec4 pos = qt_Matrix * vertex;
- gl_Position = pos;
- texCoord = multiTexCoord;
-
- if (vertexOffset.x != 0.) {
- vec4 delta = qt_Matrix[0] * vertexOffset.x;
- vec2 dir = delta.xy * pos.w - pos.xy * delta.w;
- vec2 ndir = .5 * pixelSize * normalize(dir / pixelSize);
- dir -= ndir * delta.w * pos.w;
- float numerator = dot(dir, ndir * pos.w * pos.w);
- float scale = 0.0;
- if (numerator < 0.0)
- scale = 1.0;
- else
- scale = min(1.0, numerator / dot(dir, dir));
- gl_Position += scale * delta;
- texCoord.x += scale * texCoordOffset.x;
- }
-
- if (vertexOffset.y != 0.) {
- vec4 delta = qt_Matrix[1] * vertexOffset.y;
- vec2 dir = delta.xy * pos.w - pos.xy * delta.w;
- vec2 ndir = .5 * pixelSize * normalize(dir / pixelSize);
- dir -= ndir * delta.w * pos.w;
- float numerator = dot(dir, ndir * pos.w * pos.w);
- float scale = 0.0;
- if (numerator < 0.0)
- scale = 1.0;
- else
- scale = min(1.0, numerator / dot(dir, dir));
- gl_Position += scale * delta;
- texCoord.y += scale * texCoordOffset.y;
- }
-
- bool onEdge = any(notEqual(vertexOffset, vec2(0.)));
- bool outerEdge = all(equal(texCoordOffset, vec2(0.)));
- if (onEdge && outerEdge)
- vertexOpacity = 0.;
- else
- vertexOpacity = opacity;
-}
diff --git a/src/quick/scenegraph/shaders/sprite.frag b/src/quick/scenegraph/shaders/sprite.frag
deleted file mode 100644
index e1fcb0f006..0000000000
--- a/src/quick/scenegraph/shaders/sprite.frag
+++ /dev/null
@@ -1,12 +0,0 @@
-uniform sampler2D _qt_texture;
-uniform lowp float qt_Opacity;
-
-varying highp vec4 fTexS;
-varying lowp float progress;
-
-void main()
-{
- gl_FragColor = mix(texture2D(_qt_texture, fTexS.xy),
- texture2D(_qt_texture, fTexS.zw),
- progress) * qt_Opacity;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/sprite.vert b/src/quick/scenegraph/shaders/sprite.vert
deleted file mode 100644
index fc826f60b4..0000000000
--- a/src/quick/scenegraph/shaders/sprite.vert
+++ /dev/null
@@ -1,23 +0,0 @@
-attribute highp vec2 vPos;
-attribute highp vec2 vTex;
-
-uniform highp vec3 animData;// w,h(premultiplied of anim), interpolation progress
-uniform highp vec4 animPos;//x,y, x,y (two frames for interpolation)
-
-uniform highp mat4 qt_Matrix;
-
-varying highp vec4 fTexS;
-varying lowp float progress;
-
-void main()
-{
- progress = animData.z;
-
- // Calculate frame location in texture
- fTexS.xy = animPos.xy + vTex.xy * animData.xy;
-
- // Next frame is also passed, for interpolation
- fTexS.zw = animPos.zw + vTex.xy * animData.xy;
-
- gl_Position = qt_Matrix * vec4(vPos.x, vPos.y, 0, 1);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/sprite_core.frag b/src/quick/scenegraph/shaders/sprite_core.frag
deleted file mode 100644
index c1087a8754..0000000000
--- a/src/quick/scenegraph/shaders/sprite_core.frag
+++ /dev/null
@@ -1,16 +0,0 @@
-#version 150 core
-
-in vec4 fTexS;
-in float progress;
-
-out vec4 fragColor;
-
-uniform sampler2D _qt_texture;
-uniform float qt_Opacity;
-
-void main()
-{
- fragColor = mix(texture(_qt_texture, fTexS.xy),
- texture(_qt_texture, fTexS.zw),
- progress) * qt_Opacity;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/sprite_core.vert b/src/quick/scenegraph/shaders/sprite_core.vert
deleted file mode 100644
index 5027bf03fc..0000000000
--- a/src/quick/scenegraph/shaders/sprite_core.vert
+++ /dev/null
@@ -1,24 +0,0 @@
-#version 150 core
-
-in vec2 vPos;
-in vec2 vTex;
-
-out vec4 fTexS;
-out float progress;
-
-uniform vec3 animData; // w,h(premultiplied of anim), interpolation progress
-uniform vec4 animPos; // x,y, x,y (two frames for interpolation)
-uniform mat4 qt_Matrix;
-
-void main()
-{
- progress = animData.z;
-
- // Calculate frame location in texture
- fTexS.xy = animPos.xy + vTex.xy * animData.xy;
-
- // Next frame is also passed, for interpolation
- fTexS.zw = animPos.zw + vTex.xy * animData.xy;
-
- gl_Position = qt_Matrix * vec4(vPos.x, vPos.y, 0, 1);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/styledtext.frag b/src/quick/scenegraph/shaders/styledtext.frag
deleted file mode 100644
index 662dbef2fc..0000000000
--- a/src/quick/scenegraph/shaders/styledtext.frag
+++ /dev/null
@@ -1,14 +0,0 @@
-varying highp vec2 sampleCoord;
-varying highp vec2 shiftedSampleCoord;
-
-uniform sampler2D _qt_texture;
-uniform lowp vec4 color;
-uniform lowp vec4 styleColor;
-
-void main()
-{
- lowp float glyph = texture2D(_qt_texture, sampleCoord).a;
- lowp float style = clamp(texture2D(_qt_texture, shiftedSampleCoord).a - glyph,
- 0.0, 1.0);
- gl_FragColor = style * styleColor + glyph * color;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/styledtext.vert b/src/quick/scenegraph/shaders/styledtext.vert
deleted file mode 100644
index 29c9902609..0000000000
--- a/src/quick/scenegraph/shaders/styledtext.vert
+++ /dev/null
@@ -1,18 +0,0 @@
-uniform highp mat4 matrix;
-uniform highp vec2 textureScale;
-uniform highp vec2 shift;
-uniform highp float dpr;
-
-attribute highp vec4 vCoord;
-attribute highp vec2 tCoord;
-
-varying highp vec2 sampleCoord;
-varying highp vec2 shiftedSampleCoord;
-
-void main()
-{
- sampleCoord = tCoord * textureScale;
- shiftedSampleCoord = (tCoord - shift) * textureScale;
- vec3 dprSnapPos = floor(vCoord.xyz * dpr + 0.5) / dpr;
- gl_Position = matrix * vec4(dprSnapPos, vCoord.w);
-}
diff --git a/src/quick/scenegraph/shaders/styledtext_core.frag b/src/quick/scenegraph/shaders/styledtext_core.frag
deleted file mode 100644
index 5480e95a42..0000000000
--- a/src/quick/scenegraph/shaders/styledtext_core.frag
+++ /dev/null
@@ -1,18 +0,0 @@
-#version 150 core
-
-in vec2 sampleCoord;
-in vec2 shiftedSampleCoord;
-
-out vec4 fragColor;
-
-uniform sampler2D _qt_texture;
-uniform vec4 color;
-uniform vec4 styleColor;
-
-void main()
-{
- float glyph = texture(_qt_texture, sampleCoord).r;
- float style = clamp(texture(_qt_texture, shiftedSampleCoord).r - glyph,
- 0.0, 1.0);
- fragColor = style * styleColor + glyph * color;
-}
diff --git a/src/quick/scenegraph/shaders/styledtext_core.vert b/src/quick/scenegraph/shaders/styledtext_core.vert
deleted file mode 100644
index 04a0e88da8..0000000000
--- a/src/quick/scenegraph/shaders/styledtext_core.vert
+++ /dev/null
@@ -1,20 +0,0 @@
-#version 150 core
-
-in vec4 vCoord;
-in vec2 tCoord;
-
-out vec2 sampleCoord;
-out vec2 shiftedSampleCoord;
-
-uniform mat4 matrix;
-uniform vec2 textureScale;
-uniform vec2 shift;
-uniform float dpr;
-
-void main()
-{
- sampleCoord = tCoord * textureScale;
- shiftedSampleCoord = (tCoord - shift) * textureScale;
- vec3 dprSnapPos = floor(vCoord.xyz * dpr + 0.5) / dpr;
- gl_Position = matrix * vec4(dprSnapPos, vCoord.w);
-}
diff --git a/src/quick/scenegraph/shaders/textmask.frag b/src/quick/scenegraph/shaders/textmask.frag
deleted file mode 100644
index 7715688ecc..0000000000
--- a/src/quick/scenegraph/shaders/textmask.frag
+++ /dev/null
@@ -1,10 +0,0 @@
-varying highp vec2 sampleCoord;
-
-uniform sampler2D _qt_texture;
-uniform lowp vec4 color;
-
-void main()
-{
- lowp vec4 glyph = texture2D(_qt_texture, sampleCoord);
- gl_FragColor = vec4(glyph.rgb * color.a, glyph.a);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/textmask.vert b/src/quick/scenegraph/shaders/textmask.vert
deleted file mode 100644
index 1692159d2c..0000000000
--- a/src/quick/scenegraph/shaders/textmask.vert
+++ /dev/null
@@ -1,15 +0,0 @@
-uniform highp mat4 matrix;
-uniform highp vec2 textureScale;
-uniform highp float dpr;
-
-attribute highp vec4 vCoord;
-attribute highp vec2 tCoord;
-
-varying highp vec2 sampleCoord;
-
-void main()
-{
- sampleCoord = tCoord * textureScale;
- vec3 dprSnapPos = floor(vCoord.xyz * dpr + 0.5) / dpr;
- gl_Position = matrix * vec4(dprSnapPos, vCoord.w);
-}
diff --git a/src/quick/scenegraph/shaders/textmask_core.frag b/src/quick/scenegraph/shaders/textmask_core.frag
deleted file mode 100644
index 17dda53c97..0000000000
--- a/src/quick/scenegraph/shaders/textmask_core.frag
+++ /dev/null
@@ -1,14 +0,0 @@
-#version 150 core
-
-in vec2 sampleCoord;
-
-out vec4 fragColor;
-
-uniform sampler2D _qt_texture;
-uniform vec4 color;
-
-void main()
-{
- vec4 glyph = texture(_qt_texture, sampleCoord);
- fragColor = vec4(glyph.rgb * color.a, glyph.a);
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/textmask_core.vert b/src/quick/scenegraph/shaders/textmask_core.vert
deleted file mode 100644
index b0efc1e731..0000000000
--- a/src/quick/scenegraph/shaders/textmask_core.vert
+++ /dev/null
@@ -1,17 +0,0 @@
-#version 150 core
-
-in vec4 vCoord;
-in vec2 tCoord;
-
-out vec2 sampleCoord;
-
-uniform mat4 matrix;
-uniform vec2 textureScale;
-uniform float dpr;
-
-void main()
-{
- sampleCoord = tCoord * textureScale;
- vec3 dprSnapPos = floor(vCoord.xyz * dpr + 0.5) / dpr;
- gl_Position = matrix * vec4(dprSnapPos, vCoord.w);
-}
diff --git a/src/quick/scenegraph/shaders/texture.frag b/src/quick/scenegraph/shaders/texture.frag
deleted file mode 100644
index 2d97f2e66a..0000000000
--- a/src/quick/scenegraph/shaders/texture.frag
+++ /dev/null
@@ -1,9 +0,0 @@
-varying highp vec2 qt_TexCoord;
-
-uniform sampler2D qt_Texture;
-uniform lowp float opacity;
-
-void main()
-{
- gl_FragColor = texture2D(qt_Texture, qt_TexCoord) * opacity;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/texture_core.frag b/src/quick/scenegraph/shaders/texture_core.frag
deleted file mode 100644
index d9bdf6a238..0000000000
--- a/src/quick/scenegraph/shaders/texture_core.frag
+++ /dev/null
@@ -1,13 +0,0 @@
-#version 150 core
-
-in vec2 qt_TexCoord;
-
-out vec4 fragColor;
-
-uniform sampler2D qt_Texture;
-uniform float opacity;
-
-void main()
-{
- fragColor = texture(qt_Texture, qt_TexCoord) * opacity;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/vertexcolor.frag b/src/quick/scenegraph/shaders/vertexcolor.frag
deleted file mode 100644
index 71de9dbfc2..0000000000
--- a/src/quick/scenegraph/shaders/vertexcolor.frag
+++ /dev/null
@@ -1,6 +0,0 @@
-varying lowp vec4 color;
-
-void main()
-{
- gl_FragColor = color;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/vertexcolor.vert b/src/quick/scenegraph/shaders/vertexcolor.vert
deleted file mode 100644
index 750d520114..0000000000
--- a/src/quick/scenegraph/shaders/vertexcolor.vert
+++ /dev/null
@@ -1,13 +0,0 @@
-attribute highp vec4 vertexCoord;
-attribute highp vec4 vertexColor;
-
-uniform highp mat4 matrix;
-uniform highp float opacity;
-
-varying lowp vec4 color;
-
-void main()
-{
- gl_Position = matrix * vertexCoord;
- color = vertexColor * opacity;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/vertexcolor_core.frag b/src/quick/scenegraph/shaders/vertexcolor_core.frag
deleted file mode 100644
index 84533c2b40..0000000000
--- a/src/quick/scenegraph/shaders/vertexcolor_core.frag
+++ /dev/null
@@ -1,10 +0,0 @@
-#version 150 core
-
-in vec4 color;
-
-out vec4 fragColor;
-
-void main()
-{
- fragColor = color;
-} \ No newline at end of file
diff --git a/src/quick/scenegraph/shaders/vertexcolor_core.vert b/src/quick/scenegraph/shaders/vertexcolor_core.vert
deleted file mode 100644
index 219b840913..0000000000
--- a/src/quick/scenegraph/shaders/vertexcolor_core.vert
+++ /dev/null
@@ -1,15 +0,0 @@
-#version 150 core
-
-in vec4 vertexCoord;
-in vec4 vertexColor;
-
-out vec4 color;
-
-uniform mat4 matrix;
-uniform float opacity;
-
-void main()
-{
- gl_Position = matrix * vertexCoord;
- color = vertexColor * opacity;
-} \ No newline at end of file