blob: f140e68c18922836241e58f390ee15b7b4acb8b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef SHURIKENMODULECOLORBYVELOCITY_H
#define SHURIKENMODULECOLORBYVELOCITY_H
#include "ParticleSystemModule.h"
#include "Runtime/Graphics/ParticleSystem/ParticleSystemGradients.h"
#include "Runtime/Math/Vector2.h"
class ColorBySpeedModule : public ParticleSystemModule
{
public:
DECLARE_MODULE (ColorBySpeedModule)
ColorBySpeedModule ();
void Update (const ParticleSystemParticles& ps, ColorRGBA32* colorTemp, size_t fromIndex, size_t toIndex);
void CheckConsistency ();
inline MinMaxGradient& GetGradient() { return m_Gradient; };
template<class TransferFunction>
void Transfer (TransferFunction& transfer);
private:
MinMaxGradient m_Gradient;
Vector2f m_Range;
};
#endif // SHURIKENMODULECOLORBYVELOCITY_H
|