1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-06 14:22:33 +00:00

Add option for particles to inherit alpha/color from their ParticleEffect

This commit is contained in:
fgenesis 2014-03-10 17:28:41 +01:00
commit 65e457423c
5 changed files with 19 additions and 11 deletions

View file

@ -404,6 +404,16 @@ void ParticleEffect::bankLoad(const std::string &file, const std::string &path)
inf >> tmp;
inf >> currentEmitter->data.suckIndex >> currentEmitter->data.suckStr;
}
else if (token == "InheritColor")
{
inf >> tmp;
inf >> currentEmitter->data.inheritColor;
}
else if (token == "InheritAlpha")
{
inf >> tmp;
inf >> currentEmitter->data.inheritAlpha;
}
}
}
}