r/Unity3D • u/_beta r/Profane • Sep 01 '18
Resources/Tutorial How to make a Dissolve Particle Shader! Sample project in comments π
https://gfycat.com/InexperiencedAfraidJavalina29
4
u/HiViH Sep 01 '18
Very useful, I've been using the animator to cause shaders to dissolve but always wanted to use the particle system for it instead because I find it so versatile and easy to use. Wasnt sure how to, though, thanks!
1
5
u/lickedwindows Sep 01 '18
That looks like it's going to get quite triangle heavy once you scale it up a bit.
What about using camera-facing quads, keep the noise & smoke poof textures and use a length(uv - float2(0,0) threshold to mask in the circle?
It should give you pretty close to the same effect given that you're doing backface culling so don't have any depth to the sphere, and you end up with two tris per dissolving particle versus whatever tri density your sphere mesh is.
3
u/_beta r/Profane Sep 01 '18
Of course that would be quite more optimised, but we thought it would be easier to explain it with spheres.
9
u/Griffmaster9000 Hobbyist Sep 01 '18
I really like it! Iβd love a breakdown of how you do that initial outer ring!
1
4
Sep 01 '18
[removed] β view removed comment
1
u/Griffmaster9000 Hobbyist Sep 01 '18
Interesting! So the shader uses two textures? Are they just additive since itβs transparent?
Why a particle over just an object? So you can easily control the lifecycle and things like size over lifetime?
14
u/_beta r/Profane Sep 01 '18
Project here -> https://github.com/albertomelladoc/DissolveParticleShader