aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/shaders/24bittextmask_core.frag
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/scenegraph/shaders/24bittextmask_core.frag')
-rw-r--r--src/quick/scenegraph/shaders/24bittextmask_core.frag14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/quick/scenegraph/shaders/24bittextmask_core.frag b/src/quick/scenegraph/shaders/24bittextmask_core.frag
new file mode 100644
index 0000000000..29d1f23017
--- /dev/null
+++ b/src/quick/scenegraph/shaders/24bittextmask_core.frag
@@ -0,0 +1,14 @@
+#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