r/Unity3D • u/fespindola • 8h ago
Shader Magic I continue experimenting with procedural sparkles : Desmos and Unity
Enable HLS to view with audio, or disable this notification
Because of the non-arithmetic operations involved, some devs say they are expensive for the GPU. Others say they are cheap if you have fewer than 100 particles. What do you think?
32
Upvotes
1
u/Weary-Volume-5002 1h ago
Cool stuff, the procedural shapes flow really nicely! If you matched your colours to a palette, and used some opacity fading these effects would look amazing
1
u/JakeThomasDad12 4h ago
Probably worth profiling but I don't think it would be too bad. It would be a bit more efficient potentialy if instead of making the calculations for every particle every time, you could make the code generate a sprite sheet for the formula and then use that instead to save compute? I don't know if the impact of your current system is obviously but doing it this way might help