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