aboutsummaryrefslogtreecommitdiff
path: root/src/render.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/render.c')
-rw-r--r--src/render.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/render.c b/src/render.c
index 85d2693..c56ef7d 100644
--- a/src/render.c
+++ b/src/render.c
@@ -379,6 +379,7 @@ static void render_setup_lighting(Game *game) {
glLightfv(GL_LIGHT0, GL_SPOT_DIRECTION, dir);
glLightf(GL_LIGHT0, GL_SPOT_CUTOFF, 45.0);
glLightf(GL_LIGHT0, GL_SPOT_EXPONENT, 20.0);
+ glLightf(GL_LIGHT0, GL_LINEAR_ATTENUATION, 0.1);
glEnable(GL_LIGHT0);
pos[0] = -1.0;