diff options
author | Evan Goers <mega@osirion.org> | 2012-11-07 11:09:54 +0000 |
---|---|---|
committer | Evan Goers <mega@osirion.org> | 2012-11-07 11:09:54 +0000 |
commit | 72f480d7f34e22104fbcfd1561b037b65365fc1f (patch) | |
tree | 0786d1b7cad7c6941f5a7653b7ffb3ce231329e6 /src | |
parent | 13cc3e9bd5745d8a4a3fa47e389825f458638653 (diff) |
Tweaked zone light attenuation values.
Diffstat (limited to 'src')
-rw-r--r-- | src/render/draw.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc index 04a2734..1d99077 100644 --- a/src/render/draw.cc +++ b/src/render/draw.cc @@ -111,8 +111,9 @@ void pass_prepare(float seconds) // add zone lights if (globe->has_flag(core::Entity::Bright)) { + float zone_light_brightness = (globe->color().r + globe->color().g + globe->color().b) / 3; Light *zone_light = new Light(globe->location(), globe->color()); - zone_light->set_attenuation(2.0f, 0.0f, 0.0f); + zone_light->set_attenuation(zone_light_brightness * 1.5f, zone_light_brightness * 0.00001f, zone_light_brightness * 0.000000001f); lightenv_zone.add(zone_light); } |