summaryrefslogtreecommitdiff
path: root/demo.fs
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-05-20 18:10:16 -0500
committersanine-a <sanine.not@pm.me>2020-05-20 18:10:16 -0500
commit447c3de585cca51013b17017d968e3aee53f5c87 (patch)
treea728c4de651c4df82bc09ecc60672ab4798b4491 /demo.fs
an initial commit
Diffstat (limited to 'demo.fs')
-rw-r--r--demo.fs14
1 files changed, 14 insertions, 0 deletions
diff --git a/demo.fs b/demo.fs
new file mode 100644
index 0000000..f1c8670
--- /dev/null
+++ b/demo.fs
@@ -0,0 +1,14 @@
+#version 330 core
+
+in vec3 outColor;
+in vec2 outTexCoord;
+
+out vec4 FragColor;
+
+uniform sampler2D boxTexture;
+uniform sampler2D happyTexture;
+
+void main()
+{
+ FragColor = mix(texture(boxTexture, outTexCoord), texture(happyTexture, outTexCoord), 0.2);
+}