1

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:

  1. It should desintegrate the image from one line upwards.

  2. 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.

  3. 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?

David
  • 5,882
  • 3
  • 33
  • 44
Dimitar Popov
  • 686
  • 5
  • 12
  • I imagine you can do this with a displacement shader and a grayscale texture for the parts you want to move, and by how much. – Iggy Apr 15 '17 at 22:36
  • Have you tried [this](http://wiki.unity3d.com/index.php?title=Dissolve_With_Texture) shader? – Hristo Apr 19 '17 at 06:47
  • I have seen this shader before but it is dissolving the texture with another effect. I need it to dissolve with the effect as in the image above! – Dimitar Popov Apr 19 '17 at 10:48
  • @Iggy Can you elaborate on your comment in more detail. And keep in mind that i need to slowly disintegrate the whole image in a top-down maner – Dimitar Popov Apr 19 '17 at 10:50
  • 1
    Have a look at this asset https://www.assetstore.unity3d.com/en/#!/content/69765 – Tengku Fathullah Apr 21 '17 at 04:09

0 Answers0