Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Goers <mega@osirion.org>2012-01-06 06:38:05 +0000
committerEvan Goers <mega@osirion.org>2012-01-06 06:38:05 +0000
commit6a61bb6ff7847f020c5c53f0cb70b9ba4f35856a (patch)
tree721cb07f19cda8d514019285e411ff57ef09f669 /src/render
parent45382662a6835e6d4d6000544cc32119394f49a2 (diff)
Re-enabled modelview lighting, separate from game lighting.
Diffstat (limited to 'src/render')
-rw-r--r--src/render/draw.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc
index 989bca7..c25a84a 100644
--- a/src/render/draw.cc
+++ b/src/render/draw.cc
@@ -124,7 +124,7 @@ void pass_prepare(float seconds)
diffuse_light[3] = 1.0f;
specular_light[3] = 1.0f;
- glLightf(GL_LIGHT0, GL_LINEAR_ATTENUATION, 0.0001);
+ glLightf(GL_LIGHT0, GL_LINEAR_ATTENUATION, ((globe->color()[0] + globe->color()[1] + globe->color()[2]) / 3.0f) * 0.0001f);
glLightfv(GL_LIGHT0, GL_POSITION, zone_light);
glLightfv(GL_LIGHT0, GL_AMBIENT, ambient_light);