summaryrefslogtreecommitdiff
path: root/shader
diff options
context:
space:
mode:
Diffstat (limited to 'shader')
-rw-r--r--shader/main.frag.glsl7
-rw-r--r--shader/main.vert.glsl7
2 files changed, 14 insertions, 0 deletions
diff --git a/shader/main.frag.glsl b/shader/main.frag.glsl
new file mode 100644
index 0000000..e81d967
--- /dev/null
+++ b/shader/main.frag.glsl
@@ -0,0 +1,7 @@
+#version 150 core
+
+out vec4 col;
+
+void main() {
+ col = vec4(0.7137f,0.0941f,0.2000f,1.0f);
+}
diff --git a/shader/main.vert.glsl b/shader/main.vert.glsl
new file mode 100644
index 0000000..d6c02c9
--- /dev/null
+++ b/shader/main.vert.glsl
@@ -0,0 +1,7 @@
+#version 150 core
+
+in vec3 pos;
+
+void main() {
+ gl_Position = vec4(pos.x,pos.y,pos.z,1.0f);
+}