mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-07 21:56:44 +01:00
particle: fix tint preservation in FaderParticle
This commit is contained in:
parent
91180024a1
commit
52030b67e3
1 changed files with 1 additions and 0 deletions
|
@ -107,6 +107,7 @@ SYMBOL_EXPORT bool FaderParticle(struct Game* game, struct ParticleState* partic
|
|||
data->fade += data->speed * delta / (1 / 60.0);
|
||||
}
|
||||
|
||||
al_unmap_rgba_f(particle->tint, &r, &g, &b, &a);
|
||||
r *= 1.0 - data->fade;
|
||||
g *= 1.0 - data->fade;
|
||||
b *= 1.0 - data->fade;
|
||||
|
|
Loading…
Reference in a new issue