Add ColorByVelocityModifier#492
Conversation
efe917e to
540a3dd
Compare
This modifier sets the color of a particle on a gradient based on its linear velocity at any point in time. Great for having particles disappear as they slow down, for example. Signed-off-by: Ryan Bottriell <ryan@bottriell.ca>
540a3dd to
f23706b
Compare
|
Hi @rydrman, Thanks for this change. I had a look, and I think you can achieve this with the current API, by using expressions, can't you? I see we're missing |
|
Hmmm, ya I looked at the expression API and couldn't see a path to what I wanted. That being said, I had limited time to get something going. If you feel like it's possible with the expressions then definitely feel free to close - I appreciate you laying out the intention wrt/ the api. |
This modifier sets the color of a particle on a gradient based on its linear velocity at any point in time. Great for having particles disappear as they slow down, for example.
The implementation is largely a copy from the
ColorOverLifetimeModifierbut calculates the position in the gradient based on a clamped particle velocity