diff --git a/source/shared_lib/sources/graphics/particle.cpp b/source/shared_lib/sources/graphics/particle.cpp index e33cb41a..4e91c962 100644 --- a/source/shared_lib/sources/graphics/particle.cpp +++ b/source/shared_lib/sources/graphics/particle.cpp @@ -997,6 +997,12 @@ void UnitParticleSystem::initParticle(Particle *p, int particleIndex){ const float radRatio= sqrtf(mod / radius); #endif p->color= color; + if(isDaylightAffected==true) + { + p->color.x=p->color.x*lightColor.x; + p->color.y=p->color.y*lightColor.y; + p->color.z=p->color.z*lightColor.z; + } if(radiusBasedStartenergy == true){ p->energy= static_cast (maxParticleEnergy * radRatio) + random.randRange(-varParticleEnergy, varParticleEnergy);