Layer specific particle data for managing the lifecycle of particles. More...
#include <LifeCycleParticleLayer.h>
Public Attributes | |
float | birthDate |
The birth date of this particle, in microseconds. |
Layer specific particle data for managing the lifecycle of particles.
The birth date of this particle, in microseconds.
This birth date allows one to compute the age of the particle. If this age is between 0 and fadeInDelay the particle is fading in. If this age is between fadeInDelay and fadeInDelay + activeDelay, the particle is active. Otherwise it is fading out. Note that we do not store the particle's age directly to avoid updating it at each frame.