diff options
author | Stijn Buys <ingar@osirion.org> | 2010-12-04 00:57:11 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-12-04 00:57:11 +0000 |
commit | d1fc8b10f6731a27e9b7fa39ce42aaa4c6e0bcee (patch) | |
tree | cc5e1013458e3a6aa46f005bb698e450e16034c5 | |
parent | affa3d2a6761c4040434e11726695ad6e53a4cab (diff) |
Added engine glow to modelview.
-rwxr-xr-x | src/ui/modelview.cc | 7 |
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); |