summaryrefslogtreecommitdiff
path: root/engine/fragment-texture.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'engine/fragment-texture.glsl')
-rw-r--r--engine/fragment-texture.glsl11
1 files changed, 11 insertions, 0 deletions
diff --git a/engine/fragment-texture.glsl b/engine/fragment-texture.glsl
new file mode 100644
index 0000000..a4d378b
--- /dev/null
+++ b/engine/fragment-texture.glsl
@@ -0,0 +1,11 @@
+#version 330 core
+out vec4 FragColor;
+
+in vec2 in_texture_coords;
+
+uniform sampler2D input_texture;
+
+void main()
+{
+ FragColor = texture(input_texture, in_texture_coords);
+}