summaryrefslogtreecommitdiffstats
path: root/res/text.f.glsl
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-02-23 20:42:58 -0800
committerJoe Wilm <joe@jwilm.com>2016-02-23 20:42:58 -0800
commit2b7caf95fd6a28d621a348e95f66dd2aee988567 (patch)
treeccfd1e7c0c4c86ecdd36c7e98d164f58b34132d0 /res/text.f.glsl
parente301843686c3f7ce04b7e44e82f20e8f6e3613a7 (diff)
Render the letter J
This letter brought to you by OpenGL and freetype.
Diffstat (limited to 'res/text.f.glsl')
-rw-r--r--res/text.f.glsl11
1 files changed, 11 insertions, 0 deletions
diff --git a/res/text.f.glsl b/res/text.f.glsl
new file mode 100644
index 00000000..32266b3e
--- /dev/null
+++ b/res/text.f.glsl
@@ -0,0 +1,11 @@
+#version 330 core
+in vec2 TexCoords;
+
+uniform sampler2D text;
+uniform vec3 textColor;
+
+void main()
+{
+ vec4 sampled = vec4(1.0, 1.0, 1.0, texture(text, TexCoords).r);
+ gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0) * sampled;
+}