aboutsummaryrefslogtreecommitdiff
path: root/shaders/vertex.vsh
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/vertex.vsh')
-rw-r--r--shaders/vertex.vsh11
1 files changed, 11 insertions, 0 deletions
diff --git a/shaders/vertex.vsh b/shaders/vertex.vsh
new file mode 100644
index 0000000..d195db3
--- /dev/null
+++ b/shaders/vertex.vsh
@@ -0,0 +1,11 @@
+# version 330 core
+
+layout (location = 0) in vec3 aPos;
+
+out vec4 vertexColor;
+
+void main()
+{
+ gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0f);
+ vertexColor = vec4(0.2, 0.7, 0.2, 0.8);
+}
Feel free to download, copy and edit any repo