X-Git-Url: https://gitweb.ps.run/subsurface_scattering/blobdiff_plain/36fb27a899045de24d71d55b06648abda7547268..refs/heads/main:/shaders/frag_shadowmap.glsl diff --git a/shaders/frag_shadowmap.glsl b/shaders/frag_shadowmap.glsl index 2011f82..38a01b6 100644 --- a/shaders/frag_shadowmap.glsl +++ b/shaders/frag_shadowmap.glsl @@ -10,10 +10,10 @@ uniform vec3 lightPos; void main() { + // calculate distance in world coordinates float lightDist = length(lightPos - FragPos); float c1 = lightDist; float c2 = lightDist; float c3 = lightDist; FragColor = vec4(c1, c2, c3, 1); - //FragColor = vec4(LocalPos/10, 1); }