Skip to content

Commit

Permalink
v2.8.5 Fix the new Color Curves for animated Effect (99% of them...)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarbian committed Jul 24, 2019
1 parent 20af702 commit 0bb8bd0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions PersistentKSPShurikenEmitter.cs
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
}
}
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Expand Up @@ -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")]

0 comments on commit 0bb8bd0

Please sign in to comment.