diff --git a/PersistentKSPShurikenEmitter.cs b/PersistentKSPShurikenEmitter.cs index 6dec067..be47a19 100644 --- a/PersistentKSPShurikenEmitter.cs +++ b/PersistentKSPShurikenEmitter.cs @@ -329,7 +329,6 @@ private void Emit (int ThisInUpdate, int TotalInUpdate) emitParams.rotation = rotation; emitParams.angularVelocity = angularV; emitParams.startLifetime = Random.Range(minEnergy, maxEnergy); - emitParams.startColor = color; Color.RGBToHSV(color, out float h, out float s, out float v); Color finalColor = Color.HSVToRGB(h, s * saturationMult, v * brightnessMult); @@ -636,7 +635,11 @@ public void EmitterOnUpdate(Vector3d emitterWorldVelocity) } Color c = Color.Lerp(a, b, lerp); - particle.startColor = c; + Color.RGBToHSV(c, out float h, out float s, out float v); + Color finalColor = Color.HSVToRGB(h, s * saturationMult, v * brightnessMult); + finalColor.a = c.a * alphaMult; + + particle.startColor = finalColor; Profiler.EndSample(); } } diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index aa79a06..fdbe2a7 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -34,5 +34,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.8.4.0")] -[assembly: AssemblyFileVersion("2.8.4.0")] +[assembly: AssemblyVersion("2.8.5.0")] +[assembly: AssemblyFileVersion("2.8.5.0")]