I am making a 2D game with Unity3D and I need disintegration shader for sprites like the following picture (the picture is horizontal, i need it vertical)
The shader should have the following possibilites:
It should desintegrate the image from one line upwards.
The line should be defined with a floating number variable, which I will pass to the shader, between 0 and 1. Zero means no disintegration (just a normal image) and 1 means full disintegration of the entire image.
- The shader should also keep support for the unity illumination of sprites (because I am planning to have lights in my 2d game)
I am not good with shaders, I previously have written only basic ones with libgdx before, so can you help me or point me in the right direction, what I should do?