Search Unity

Standard Unlit Distortion: Get Distortion only?

Discussion in 'Shaders' started by Horus_Sungod42, Jan 19, 2019.

  1. Horus_Sungod42

    Horus_Sungod42

    Joined:
    Oct 30, 2014
    Posts:
    99
    Hello,

    I was trying out the new unlit particle shader but was unable to have distortion only. (like heat waves for example)

    Additive modes make the entire particle lighter, no matter what color I put (even black), and multiply do the opposite.

    Furthermore, with distortion, the entire particle isshows (as a full square), and adding an alpha to the diffuse texture did not create distortion only within that alpha.

    So: how can I get distortion does does not lighten/darken the image (just distorts it), and how can I create an alpha (that apparently can't just be the alpha of the diffuse) so my distortion is not a big old square (the particle's full mesh).

    Thank you
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,342
    upload_2019-1-19_16-40-50.png
    upload_2019-1-19_16-42-9.png
    Main things to note: Using "Rendering Mode > Fade", and "Blend > 1". Alpha is coming from the diffuse texture, which is just a white circle texture with a soft edge, though the color doesn't actually matter, only the alpha.
     
    Horus_Sungod42 likes this.
  3. Horus_Sungod42

    Horus_Sungod42

    Joined:
    Oct 30, 2014
    Posts:
    99
    Thank you for the answer, I will try that!
     
  4. Horus_Sungod42

    Horus_Sungod42

    Joined:
    Oct 30, 2014
    Posts:
    99
    That worked! I simply did not know about the Blend amount.

    Thank you for the excellent answer.