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>2013-01-27 09:41:25 +0000
committerStijn Buys <ingar@osirion.org>2013-01-27 09:41:25 +0000
commitf096586dac6e6c0e083e23afafc99731bf2ba642 (patch)
tree2414c2ac1c115696e449c8006e70fae1ebb0d679 /src/render/draw.cc
parent52a0d3571f56187d8801793b36a5511966e1d9a0 (diff)
Added support for particles minimum/maximum speed,
renamed [ejector] sections in particle ini files, resolved the issue where only 1 particle per frame could be ejected.
Diffstat (limited to 'src/render/draw.cc')
-rw-r--r--src/render/draw.cc31
1 files changed, 2 insertions, 29 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc
index 0d77c7b..87c25e2 100644
--- a/src/render/draw.cc
+++ b/src/render/draw.cc
@@ -932,6 +932,8 @@ void draw_model_lights(model::Model *model, const float scale,
}
// draw the quad
+
+ // FIXME add random per-light rotation
gl::color(color);
gl::texcoord(1, 0);
@@ -1087,36 +1089,7 @@ void draw_pass_model_fx(float elapsed)
// draw particle systems
if (draw_particles && ext_render(entity)->particles().size()) {
- /*
- gl::disable(GL_CULL_FACE);
-
- model::Cull current_cull = model::CullNone;
-
- for (RenderExt::ParticleSystems::iterator it = ext_render(entity)->particles().begin(); it != ext_render(entity)->particles().end(); it++) {
- ParticleSystem *particlesystem = (*it);
-
- if (current_cull != particlesystem->cull()) {
- if (particlesystem->cull() == model::CullNone) {
- gl::disable(GL_CULL_FACE);
- current_cull = model::CullNone;
- } else {
- if (current_cull == model::CullNone) {
- gl::enable(GL_CULL_FACE);
- }
-
- if (particlesystem->cull() == model::CullBack) {
- gl::cullface(GL_BACK);
- current_cull = model::CullBack;
- } else {
- gl::cullface(GL_FRONT);
- current_cull = model::CullFront;
- }
- }
- }
- particlesystem->draw(elapsed);
- }
- */
for (RenderExt::ParticleSystems::iterator it = ext_render(entity)->particles().begin(); it != ext_render(entity)->particles().end(); ++it) {
(*it)->draw(elapsed);
}