summaryrefslogtreecommitdiff
path: root/light.vs
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-05-23 12:36:13 -0500
committersanine-a <sanine.not@pm.me>2020-05-23 12:36:13 -0500
commit86bd56a8983b664e145ddd3b34a2c2fa8bdf21a9 (patch)
tree04b7571e2fc6ef3d7c91ac1fe6c28c4290fd8fff /light.vs
parent018b7ce3f7d94af92fa4fab32ffdde451da7fcb9 (diff)
add normals to primitives
Diffstat (limited to 'light.vs')
-rw-r--r--light.vs11
1 files changed, 11 insertions, 0 deletions
diff --git a/light.vs b/light.vs
new file mode 100644
index 0000000..e135d84
--- /dev/null
+++ b/light.vs
@@ -0,0 +1,11 @@
+#version 330 core
+layout (location = 0) in vec3 position;
+
+uniform mat4 model;
+uniform mat4 view;
+uniform mat4 projection;
+
+void main()
+{
+ gl_Position = projection * view * model * vec4(position.xyz, 1.0);
+} \ No newline at end of file