diff options
author | Stijn Buys <ingar@osirion.org> | 2008-03-23 22:24:13 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-03-23 22:24:13 +0000 |
commit | 5a099735d5457298b87a33884356ff29417143e6 (patch) | |
tree | 05f6fa86051b0b7be450383d5cdea19340365cc6 /src/render | |
parent | 8529af97f7b9a5d69297726a62bdf3835f3c4d6d (diff) |
strobe lights
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/draw.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc index 8a03e40..e904888 100644 --- a/src/render/draw.cc +++ b/src/render/draw.cc @@ -171,9 +171,11 @@ void draw_model_lights(core::Entity *entity) gl::begin(gl::Points); for (std::list<core::Light *>::iterator lit = model->model_light.begin(); lit != model->model_light.end(); lit++) { - math::Vector3f location = (*lit)->location(); - gl::color((*lit)->color()); - gl::vertex(location); + if (!(*lit)->strobe() || (( core::application()->time() - floorf(core::application()->time()) ) < 0.5f)) { + math::Vector3f location = (*lit)->location(); + gl::color((*lit)->color()); + gl::vertex(location); + } } gl::end(); |