Animating opacity with useRSXformBuffer on each instance independantly #3633
Unanswered
MisterSzled
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to animate opacity on each instance the same way I can each instances scale/position
I'm trying to setup an animation (a meteor effect) with a large number of particles, > 1000, and I can't see how to animate the opacity on a per instance basis - but I can animate everything else relevant.
Currently I can:
const sprites = new Array(PARTICLE_COUNT).fill(0).map(() => rect(0, 0, DRAW_DIMENSIONS_X, DRAW_DIMENSIONS_Y));The result is almost what I want but without the fade in/out as a function of the shared values x and y coords.
I tried messing about with blend modes and color buffers. The best I had did have opacity animating on an x-coordinate basis, but since the color was being applied to the whole texture, each instance had an enormous colored block around it and they also clipped and overlapped each other.
Similarly I've looked into applying masks, but I can't see how to do it on an individual instance instead of just the whole texture or atlas.
Any help would really be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions