diff options
Diffstat (limited to 'shaders/frag_shadowmap.glsl')
| -rw-r--r-- | shaders/frag_shadowmap.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
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);
}
|
