Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorEvan Goers <mega@osirion.org>2012-01-13 08:39:53 +0000
committerEvan Goers <mega@osirion.org>2012-01-13 08:39:53 +0000
commitaba7572643ca5211b6c13bb0cf37c3d2fffea11b (patch)
tree9490eaffb953effaa0022359e1a61ec87fe1db29 /src/ui
parent28eeb651acfd294b2b0bb7d4e14f09eb365caf7c (diff)
Fix particle script 'engine', 'entity', 'color' flags.
Enable light attenuation in modelview.
Diffstat (limited to 'src/ui')
-rwxr-xr-xsrc/ui/modelview.cc2
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);