using OpenTK;
namespace SM.Base.Drawing.Particles
{
public class ParticleInstance : Instance
{
public float StartLifetime = 0;
///
/// The lifetime this particular particle still has.
///
public float Lifetime = 0;
///
/// A additional matrix to store rotation and scale.
///
public Matrix4 Matrix;
///
/// Speeeeeeeeeed
///
public float Speed;
}
public class ParticleInstance : ParticleInstance
where TValue : struct
{
///
/// A direction, that the particle should travel.
///
public TValue Direction;
///
/// The start position.
///
public TValue StartPosition;
}
}