aboutsummaryrefslogtreecommitdiff
path: root/shaders/vertex.vsh
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2022-08-19 10:08:09 -0500
committerjvech <jmvalenciae@unal.edu.co>2022-08-19 10:08:09 -0500
commit3bad7358dc55a969aec23bb5a5932c072d4beedd (patch)
treee4685599e1c433300bbf6f734e4fbff2597eda0b /shaders/vertex.vsh
parentebb66ddbb17a3b82f7632a07fa4db60223b9e55a (diff)
feat: vertex and fragment shader loader implemented
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