From c99ecda7bed596922125f6b1ef1ef2ae8f27703e Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 26 Mar 2021 19:36:35 +0100 Subject: SSSSS comments --- shaders/vert_shadowmap.glsl | 1 + 1 file changed, 1 insertion(+) (limited to 'shaders/vert_shadowmap.glsl') diff --git a/shaders/vert_shadowmap.glsl b/shaders/vert_shadowmap.glsl index 50847bb..a6c9398 100644 --- a/shaders/vert_shadowmap.glsl +++ b/shaders/vert_shadowmap.glsl @@ -14,6 +14,7 @@ uniform mat4 projection; void main() { gl_Position = projection * lightView * model * vec4(pos, 1.0); + // pass fragment position in world coordinates FragPos = vec3(model * vec4(pos, 1)); LocalPos = pos; Normal = normal; -- cgit v1.2.3