X-Git-Url: https://gitweb.ps.run/subsurface_scattering/blobdiff_plain/a0fdc6d882a1755d0b0607ba3d9bb55e7f8ac006..refs/heads/main:/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;