Open kionell opened 2 years ago
I also wanted to randomize alpha of triangles a little bit, but I don't know how to do it. Triangles are using the same shader (white texture), which makes it impossible to give its own alpha value for each particle.
Currently if you stack too many triangles on top of each other, the number glow texture will become too bright.
@kionell Randomizing the alpha is not possible with the current setup, as all of the triangles are rendered as a single "instance". The two solutions I see are using a custom shader+attribute, or rendering each triangle as a separate instance (probably bypassing the batch render).
Unfortunately, I have a lot going on right now, so I probably won't get a chance to look through your PR for a while.
I don't even know where to start lmao. I put a lot of effort into it and it still needs some minor fixes.
Most notable changes:
Cloudflare deployment to test it: https://3f12a5fd.kionell-osu-js.pages.dev/
Here is the final result: https://streamable.com/whzzm5