diff options
Diffstat (limited to 'src/ui')
-rwxr-xr-x | src/ui/modelview.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/modelview.cc b/src/ui/modelview.cc index 7ac8ef3..b370029 100755 --- a/src/ui/modelview.cc +++ b/src/ui/modelview.cc @@ -227,6 +227,8 @@ void ModelView::draw() glLightfv(GL_LIGHT1, GL_DIFFUSE, diffuse_light); glLightfv(GL_LIGHT1, GL_SPECULAR, specular_light); + glLightf(GL_LIGHT1, GL_LINEAR_ATTENUATION, 0.05f); + gl::enable(GL_LIGHT1); render::draw_model_fragments(model, modelview_color_primary, modelview_color_secondary, core::application()->time(), true, true, thrust); |