From 926cbd0d49890772f911e6a6bedb7835605ced89 Mon Sep 17 00:00:00 2001 From: pryazha Date: Thu, 6 Feb 2025 12:38:09 +0500 Subject: change --- advanced_lighting/3.1.shadow_mapping/shaders/simple_depth.vs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 advanced_lighting/3.1.shadow_mapping/shaders/simple_depth.vs (limited to 'advanced_lighting/3.1.shadow_mapping/shaders/simple_depth.vs') diff --git a/advanced_lighting/3.1.shadow_mapping/shaders/simple_depth.vs b/advanced_lighting/3.1.shadow_mapping/shaders/simple_depth.vs new file mode 100644 index 0000000..b9752ed --- /dev/null +++ b/advanced_lighting/3.1.shadow_mapping/shaders/simple_depth.vs @@ -0,0 +1,11 @@ +#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