From 6a61bb6ff7847f020c5c53f0cb70b9ba4f35856a Mon Sep 17 00:00:00 2001 From: Evan Goers Date: Fri, 6 Jan 2012 06:38:05 +0000 Subject: Re-enabled modelview lighting, separate from game lighting. --- src/render/draw.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/render') 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); -- cgit v1.2.3