summaryrefslogtreecommitdiff
path: root/source/shaders/ui_text_shader.fs.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'source/shaders/ui_text_shader.fs.glsl')
-rw-r--r--source/shaders/ui_text_shader.fs.glsl12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/shaders/ui_text_shader.fs.glsl b/source/shaders/ui_text_shader.fs.glsl
new file mode 100644
index 0000000..d8bdcfb
--- /dev/null
+++ b/source/shaders/ui_text_shader.fs.glsl
@@ -0,0 +1,12 @@
+#version 330 core
+
+in vec2 TexCoords;
+uniform sampler2D Texture;
+uniform vec3 TextColor;
+out vec4 FragColor;
+
+void main() {
+ vec4 sampled = vec4(1.0, 1.0, 1.0, texture(Texture, TexCoords));
+ FragColor = sampled * vec4(TextColor, 1.0);
+};
+