Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-12-04 00:57:11 +0000
committerStijn Buys <ingar@osirion.org>2010-12-04 00:57:11 +0000
commitd1fc8b10f6731a27e9b7fa39ce42aaa4c6e0bcee (patch)
treecc5e1013458e3a6aa46f005bb698e450e16034c5 /src/ui
parentaffa3d2a6761c4040434e11726695ad6e53a4cab (diff)
Added engine glow to modelview.
Diffstat (limited to 'src/ui')
-rwxr-xr-xsrc/ui/modelview.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/modelview.cc b/src/ui/modelview.cc
index 613382a..4ce388c 100755
--- a/src/ui/modelview.cc
+++ b/src/ui/modelview.cc
@@ -191,7 +191,12 @@ void ModelView::draw()
render::State::set_normalize(true);
- const float thrust = 1.0f;
+ float thrust = ::sinf(core::application()->time() * 0.5f);
+ if (thrust < 0.0f ) {
+ thrust = 1.0f + thrust;
+ } else {
+ thrust = 1.0f;
+ }
render::draw_model_fragments(model, core::localplayer()->color(), core::localplayer()->color_second(), core::application()->time(), true, true, thrust);