aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/shaders/styledtext_core.frag
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/scenegraph/shaders/styledtext_core.frag')
-rw-r--r--src/quick/scenegraph/shaders/styledtext_core.frag18
1 files changed, 0 insertions, 18 deletions
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;
-}