diff options
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); |