aboutsummaryrefslogtreecommitdiffstats
path: root/Shaders/ui.frag
diff options
context:
space:
mode:
authorAndy Belle-Isle <drumsetmonkey@gmail.com>2019-09-23 22:14:13 -0400
committerAndy Belle-Isle <drumsetmonkey@gmail.com>2019-09-23 22:14:13 -0400
commitf6a0e340bc82cb5fb96f836686bd59aaffd5db97 (patch)
tree8d7e96bbd997be9d0a1e9bf088689366aeaae96e /Shaders/ui.frag
parent0869328b12ff9b77000915f37443dcf2468d881e (diff)
Fixed text rendering
Diffstat (limited to 'Shaders/ui.frag')
-rw-r--r--Shaders/ui.frag8
1 files changed, 7 insertions, 1 deletions
diff --git a/Shaders/ui.frag b/Shaders/ui.frag
index 118108c..63e7eb0 100644
--- a/Shaders/ui.frag
+++ b/Shaders/ui.frag
@@ -1,5 +1,11 @@
#version 130
+#ifdef GL_FRAGMENT_PRECISION_HIGH
+precision highp float;
+#else
+precision mediump float;
+#endif
+
uniform sampler2D sampler;
in vec2 texCoord;
@@ -12,5 +18,5 @@ void main(){
//TODO allow antialiasing
//if (pixelColor.w != 1.0f)
// discard;
- FragColor = pixelColor * color;
+ FragColor = pixelColor.r * color;
}