summaryrefslogtreecommitdiff
path: root/advanced_lighting/3.2.point_shadows/shaders/depth.vert
diff options
context:
space:
mode:
Diffstat (limited to 'advanced_lighting/3.2.point_shadows/shaders/depth.vert')
-rw-r--r--advanced_lighting/3.2.point_shadows/shaders/depth.vert9
1 files changed, 9 insertions, 0 deletions
diff --git a/advanced_lighting/3.2.point_shadows/shaders/depth.vert b/advanced_lighting/3.2.point_shadows/shaders/depth.vert
new file mode 100644
index 0000000..37ffd1b
--- /dev/null
+++ b/advanced_lighting/3.2.point_shadows/shaders/depth.vert
@@ -0,0 +1,9 @@
+#version 330 core
+layout(location = 0) in vec3 apos;
+
+uniform mat4 model;
+
+void main(void)
+{
+ gl_Position = model*vec4(apos, 1.0);
+}