diff options
-rw-r--r-- | src/render/draw.cc | 2 | ||||
-rwxr-xr-x | src/ui/modelview.cc | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc index b0d234f..fbc499f 100644 --- a/src/render/draw.cc +++ b/src/render/draw.cc @@ -112,7 +112,7 @@ void pass_prepare(float seconds) // add zone lights if (globe->flag_is_set(core::Entity::Bright)) { Light *zone_light = new Light(globe->location(), globe->color()); - zone_light->set_attenuation(2.0f, 0.0f, 0.0f); + zone_light->set_attenuation(0.0005f, 0.0005f, 0.0f); lightenv_zone.add(zone_light); } diff --git a/src/ui/modelview.cc b/src/ui/modelview.cc index b13b642..e4975a3 100755 --- a/src/ui/modelview.cc +++ b/src/ui/modelview.cc @@ -22,7 +22,7 @@ namespace ui { const float LIGHT_DISTANCE = -10.0f; -const float LIGHT_ATTENUATION = 2.0f; +const float LIGHT_ATTENUATION = 0.2f; ModelView::ModelView(Widget *parent) : Widget(parent) { @@ -190,7 +190,7 @@ void ModelView::draw_globe() math::Vector3f(LIGHT_DISTANCE * reference_radius, 0, 0), math::Color(1.0f, 1.0f, 1.0f) ); - light->set_attenuation(0.0f, 1.0f, 0.0f); + light->set_attenuation(LIGHT_ATTENUATION, LIGHT_ATTENUATION, 0.0f); render::LightEnvironment lightenv; lightenv.add(light); @@ -290,7 +290,7 @@ void ModelView::draw_model() math::Vector3f(LIGHT_DISTANCE * reference_radius, 0, 0), math::Color(1.0f, 1.0f, 1.0f) ); - light->set_attenuation(0.0f, 1.0f, 0.0f); + light->set_attenuation(LIGHT_ATTENUATION, LIGHT_ATTENUATION, 0.0f); render::LightEnvironment lightenv; lightenv.add(light); |