summaryrefslogtreecommitdiffstats
path: root/src/Runtime/ogl-runtime/res/effectlib/distancefieldtext.frag
diff options
context:
space:
mode:
Diffstat (limited to 'src/Runtime/ogl-runtime/res/effectlib/distancefieldtext.frag')
m---------src/Runtime/ogl-runtime0
-rw-r--r--src/Runtime/ogl-runtime/res/effectlib/distancefieldtext.frag28
2 files changed, 0 insertions, 28 deletions
diff --git a/src/Runtime/ogl-runtime b/src/Runtime/ogl-runtime
new file mode 160000
+Subproject 427fddb50d43aa21a90fc7356ee3cdd8a908df5
diff --git a/src/Runtime/ogl-runtime/res/effectlib/distancefieldtext.frag b/src/Runtime/ogl-runtime/res/effectlib/distancefieldtext.frag
deleted file mode 100644
index 1d834902..00000000
--- a/src/Runtime/ogl-runtime/res/effectlib/distancefieldtext.frag
+++ /dev/null
@@ -1,28 +0,0 @@
-#ifdef GL_OES_standard_derivatives
-# extension GL_OES_standard_derivatives : enable
-#else
-# define use_fallback
-#endif
-
-varying highp vec2 sampleCoord;
-
-uniform sampler2D _qt_texture;
-uniform highp vec4 color;
-
-#ifdef use_fallback
-varying highp vec2 alphas;
-#endif
-
-void main()
-{
- highp float distance = texture2D(_qt_texture, sampleCoord).a;
-
-#ifdef use_fallback
- highp float alpha = smoothstep(alphas.x, alphas.y, distance);
-#else
- highp float f = fwidth(distance);
- highp float alpha = smoothstep(0.5 - f, 0.5, distance);
-#endif
-
- gl_FragColor = color * alpha;
-}