diff options
author | Evan Goers <mega@osirion.org> | 2012-01-06 06:38:05 +0000 |
---|---|---|
committer | Evan Goers <mega@osirion.org> | 2012-01-06 06:38:05 +0000 |
commit | 6a61bb6ff7847f020c5c53f0cb70b9ba4f35856a (patch) | |
tree | 721cb07f19cda8d514019285e411ff57ef09f669 /src/render | |
parent | 45382662a6835e6d4d6000544cc32119394f49a2 (diff) |
Re-enabled modelview lighting, separate from game lighting.
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/draw.cc | 2 |
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); |