mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-23 19:46:30 +00:00
10 lines
315 B
C#
10 lines
315 B
C#
namespace MonoGame.Extended.Particles.Modifiers.Interpolators
|
|
{
|
|
public class OpacityInterpolator : Interpolator<float>
|
|
{
|
|
public override unsafe void Update(float amount, Particle* particle)
|
|
{
|
|
particle->Opacity = (EndValue - StartValue) * amount + StartValue;
|
|
}
|
|
}
|
|
} |