Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-03-23 22:24:13 +0000
committerStijn Buys <ingar@osirion.org>2008-03-23 22:24:13 +0000
commit5a099735d5457298b87a33884356ff29417143e6 (patch)
tree05f6fa86051b0b7be450383d5cdea19340365cc6 /src/render/draw.cc
parent8529af97f7b9a5d69297726a62bdf3835f3c4d6d (diff)
strobe lights
Diffstat (limited to 'src/render/draw.cc')
-rw-r--r--src/render/draw.cc8
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();