From f9ad6fa902c1167d7622ee7af2617d14b62bee21 Mon Sep 17 00:00:00 2001 From: pryazha Date: Wed, 19 Feb 2025 22:26:48 +0500 Subject: quite a lot of changes that I, of course, are not going to describe;) --- advanced_lighting/3.1.shadow_mapping/shaders/simple_depth.vert | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 advanced_lighting/3.1.shadow_mapping/shaders/simple_depth.vert (limited to 'advanced_lighting/3.1.shadow_mapping/shaders/simple_depth.vert') diff --git a/advanced_lighting/3.1.shadow_mapping/shaders/simple_depth.vert b/advanced_lighting/3.1.shadow_mapping/shaders/simple_depth.vert new file mode 100644 index 0000000..d3adca9 --- /dev/null +++ b/advanced_lighting/3.1.shadow_mapping/shaders/simple_depth.vert @@ -0,0 +1,10 @@ +#version 330 core +layout(location = 0) in vec3 apos; + +uniform mat4 light_space_matrix; +uniform mat4 model; + +void main(void) +{ + gl_Position = light_space_matrix*model*vec4(apos, 1.0); +} -- cgit v1.2.3