aboutsummaryrefslogtreecommitdiffstats
path: root/main.frag
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-04-14 11:29:16 +0000
committerJoursoir <chat@joursoir.net>2021-04-14 11:29:16 +0000
commit7bfd449c60dcbd9a75073b8e024b11e7b63b01e8 (patch)
tree2de1d6acc9ae665f364e081d3f74dedbf29762cf /main.frag
parent107d4ac8dc78c6919169411989fe4ebe41cd6c49 (diff)
downloadspace-simulator-7bfd449c60dcbd9a75073b8e024b11e7b63b01e8.tar.gz
space-simulator-7bfd449c60dcbd9a75073b8e024b11e7b63b01e8.tar.bz2
space-simulator-7bfd449c60dcbd9a75073b8e024b11e7b63b01e8.zip
add main shaders
Diffstat (limited to 'main.frag')
-rw-r--r--main.frag12
1 files changed, 12 insertions, 0 deletions
diff --git a/main.frag b/main.frag
new file mode 100644
index 0000000..afb9829
--- /dev/null
+++ b/main.frag
@@ -0,0 +1,12 @@
+#version 330 core
+
+in vec2 tex_coords;
+
+out vec4 color;
+
+uniform sampler2D ourTexture1;
+
+void main()
+{
+ color = texture(ourTexture1, tex_coords);
+}