Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rwxr-xr-xsrc/ui/modelview.cc6
1 files changed, 3 insertions, 3 deletions
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);