summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/spotLight.fs
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gl/shaders/spotLight.fs')
-rw-r--r--gfx/gl/shaders/spotLight.fs2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/gl/shaders/spotLight.fs b/gfx/gl/shaders/spotLight.fs
index add86fd..78b8f72 100644
--- a/gfx/gl/shaders/spotLight.fs
+++ b/gfx/gl/shaders/spotLight.fs
@@ -30,5 +30,5 @@ main()
if (normalDot < 0) {
discard;
}
- FragColor = (colour * normalDot) / (1 + (kq * pow(lightDist, 2)));
+ FragColor = (colour * normalDot) / (1 + (kq * pow(lightDist / 1000.0, 2)));
}