summaryrefslogtreecommitdiff
path: root/txtgameengine/builtin_res/shaders/font/fragment.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'txtgameengine/builtin_res/shaders/font/fragment.glsl')
-rw-r--r--txtgameengine/builtin_res/shaders/font/fragment.glsl12
1 files changed, 12 insertions, 0 deletions
diff --git a/txtgameengine/builtin_res/shaders/font/fragment.glsl b/txtgameengine/builtin_res/shaders/font/fragment.glsl
new file mode 100644
index 0000000..d9d36fd
--- /dev/null
+++ b/txtgameengine/builtin_res/shaders/font/fragment.glsl
@@ -0,0 +1,12 @@
+#version 330 core
+
+in vec2 UV;
+
+out vec3 color;
+
+uniform sampler2D textureSampler;
+
+void main() {
+ color = texture(textureSampler, UV).rgb;
+}
+