aboutsummaryrefslogtreecommitdiff
path: root/shaders/lightsource.vsh
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2022-09-11 13:54:51 -0500
committerjvech <jmvalenciae@unal.edu.co>2022-09-11 13:54:51 -0500
commit86c7bdee944ce2f60d63124e9ddb76198ddbc676 (patch)
treeb15a18f9439f11a92de94bf3be16c736a8c927ed /shaders/lightsource.vsh
parentab2160bdd347f4cd827835f1687437d25fae94c6 (diff)
learn: 14. Materials learnopengl book
Diffstat (limited to 'shaders/lightsource.vsh')
-rw-r--r--shaders/lightsource.vsh10
1 files changed, 10 insertions, 0 deletions
diff --git a/shaders/lightsource.vsh b/shaders/lightsource.vsh
new file mode 100644
index 0000000..3525c32
--- /dev/null
+++ b/shaders/lightsource.vsh
@@ -0,0 +1,10 @@
+# version 330 core
+
+layout (location = 0) in vec3 aPos;
+uniform mat4 model, view, proj;
+
+
+void main()
+{
+ gl_Position = proj * view * model * vec4(aPos, 1.0f);
+}
Feel free to download, copy and edit any repo