summaryrefslogtreecommitdiff
path: root/shaders/frag.frag
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/frag.frag')
-rw-r--r--shaders/frag.frag25
1 files changed, 25 insertions, 0 deletions
diff --git a/shaders/frag.frag b/shaders/frag.frag
new file mode 100644
index 0000000..c6bdbde
--- /dev/null
+++ b/shaders/frag.frag
@@ -0,0 +1,25 @@
+#version 300 es
+
+/*
+ * Copyright (C) 2021 Philip Jones
+ *
+ * Licensed under the MIT License.
+ * See either the LICENSE file, or:
+ *
+ * https://opensource.org/licenses/MIT
+ *
+ * I don't think you can really copyright this shader though :)
+ */
+
+precision highp float;
+
+in vec2 Texcoord;
+
+out vec4 FragColor;
+
+uniform sampler2D tex;
+
+void main()
+{
+ FragColor = texture(tex, Texcoord);
+}