summaryrefslogtreecommitdiffstats
path: root/shaders/simple.fs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--shaders/simple.fs12
1 files changed, 12 insertions, 0 deletions
diff --git a/shaders/simple.fs b/shaders/simple.fs
new file mode 100644
index 0000000..fce2e07
--- /dev/null
+++ b/shaders/simple.fs
@@ -0,0 +1,12 @@
+#version 330 core
+in vec2 TexCoord;
+
+out vec4 color;
+
+uniform sampler2D texture1;
+uniform sampler2D texture2;
+
+void main()
+{
+ color = mix(texture(texture1, TexCoord), texture(texture2, TexCoord), 0.0);
+} \ No newline at end of file