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>2010-11-18 13:50:47 +0000
committerStijn Buys <ingar@osirion.org>2010-11-18 13:50:47 +0000
commit847f84e1e3797277407bc34f5acc51b801b2bf29 (patch)
tree781edbf9e6663a4b6a8cfbaf173f43cfd83db62b /src/render/particles.cc
parent445f4a201f205763a2241d87ef81a99b5dd55d26 (diff)
Unified radiant angles conversion into a single math::Axis.assign() method, corrected transformation order.
Removed unnecessary model::LIGHTSCALE constant, light and flare sizes are rescaled according to the global model::SCALE. Added gl::depthfunc, enabled GL_LEQUAL while drawing lights and flares.
Diffstat (limited to 'src/render/particles.cc')
-rw-r--r--src/render/particles.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/render/particles.cc b/src/render/particles.cc
index 86847c3..7a0094d 100644
--- a/src/render/particles.cc
+++ b/src/render/particles.cc
@@ -188,10 +188,7 @@ ParticleScript *ParticleScript::load(const std::string &label)
std::istringstream str(inifile.value());
if (str >> pitch >> yaw >> roll) {
- script->particlescript_axis.clear();
- script->particlescript_axis.change_pitch(-pitch);
- script->particlescript_axis.change_direction(yaw);
- script->particlescript_axis.change_roll(-roll);
+ script->particlescript_axis.assign(yaw, pitch, roll);
} else {
inifile.unknown_value();
}