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:
parent
af463e63b2
commit
65e457423c
5 changed files with 19 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue