diff options
Diffstat (limited to 'src/ui/modelview.cc')
-rwxr-xr-x | src/ui/modelview.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/modelview.cc b/src/ui/modelview.cc index 8069ac7..b8d2a86 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 = 0.5f; +const float LIGHT_ATTENUATION = 1.5f; ModelView::ModelView(Widget *parent) : Widget(parent) { @@ -194,9 +194,9 @@ void ModelView::draw_globe() // set up light environment render::Light *light = new render::Light( math::Vector3f(LIGHT_DISTANCE * reference_radius, 0, 0), - math::Color(1.0f, 1.0f, 1.0f) + math::Color(0.5f, 0.5f, 0.5f) ); - light->set_attenuation(0.0f, LIGHT_ATTENUATION, 0.0f); + light->set_attenuation(LIGHT_ATTENUATION, 0.0f, 0.0f); render::LightEnvironment lightenv; lightenv.add(light); @@ -294,9 +294,9 @@ void ModelView::draw_model() // set up light environment render::Light *light = new render::Light( math::Vector3f(LIGHT_DISTANCE * reference_radius, 0, 0), - math::Color(1.0f, 1.0f, 1.0f) + math::Color(0.5f, 0.5f, 0.5f) ); - light->set_attenuation(0.0f, LIGHT_ATTENUATION, 0.0f); + light->set_attenuation(LIGHT_ATTENUATION, 0.0f, 0.0f); render::LightEnvironment lightenv; lightenv.add(light); |