summaryrefslogtreecommitdiff
path: root/advanced_lighting/2.gamma_correction/shaders/light.vs
diff options
context:
space:
mode:
Diffstat (limited to 'advanced_lighting/2.gamma_correction/shaders/light.vs')
-rw-r--r--advanced_lighting/2.gamma_correction/shaders/light.vs12
1 files changed, 12 insertions, 0 deletions
diff --git a/advanced_lighting/2.gamma_correction/shaders/light.vs b/advanced_lighting/2.gamma_correction/shaders/light.vs
new file mode 100644
index 0000000..ade669b
--- /dev/null
+++ b/advanced_lighting/2.gamma_correction/shaders/light.vs
@@ -0,0 +1,12 @@
+#version 330 core
+layout(location = 0) in vec3 apos;
+
+uniform mat4 projection;
+uniform mat4 view;
+uniform mat4 model;
+
+void
+main(void)
+{
+ gl_Position = projection*view*model*vec4(apos, 1.0);
+}