From 2c8331414db790824df9e9e2ea6e25ad7aa39b99 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 16 Apr 2013 21:06:49 +0000 Subject: Support for 'colorsecond' in particle scripts, have trail style particles use a single texture for the entire length instead of repeating it. --- src/render/particleejectorscript.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/render/particleejectorscript.cc') diff --git a/src/render/particleejectorscript.cc b/src/render/particleejectorscript.cc index b2c84bc..250eb20 100644 --- a/src/render/particleejectorscript.cc +++ b/src/render/particleejectorscript.cc @@ -28,6 +28,8 @@ ParticleEjectorScript::ParticleEjectorScript() script_spawn_radius = 0.0f; script_attached = false; script_scaled = false; + + script_color_interpolated = false; } ParticleEjectorScript::ParticleEjectorScript(const ParticleEjectorScript &other) @@ -48,6 +50,7 @@ ParticleEjectorScript::ParticleEjectorScript(const ParticleEjectorScript &other) script_cull = other.cull(); script_attached = other.attached(); script_scaled = other.scaled(); + script_color_interpolated = other.color_interpolated(); script_texture.assign(other.texture()); script_axis.assign(other.axis()); @@ -56,6 +59,7 @@ ParticleEjectorScript::ParticleEjectorScript(const ParticleEjectorScript &other) script_speed_vec.assign(other.speed_vec()); script_tailspeed_vec.assign(other.tailspeed_vec()); script_color.assign(other.color()); + script_color_second.assign(other.color_second()); } ParticleEjectorScript::~ParticleEjectorScript() -- cgit v1.2.3