From 847f84e1e3797277407bc34f5acc51b801b2bf29 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 18 Nov 2010 13:50:47 +0000 Subject: 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. --- src/render/particles.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/render/particles.cc') 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(); } -- cgit v1.2.3