Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Help Wanted Need help making a dissolve type shader with a pixel game

Discussion in 'Shader Graph' started by juicedup, Nov 12, 2020.

  1. juicedup

    juicedup

    Joined:
    Aug 18, 2019
    Posts:
    17
    Hello, I'm new to shader graph and shaders in general.
    I'm trying to make a shader for dissolving the foreground of my game.



    I've been following some tutorials I've found online but none of them deal with dissolving in a pixel art fashion.
    Any help would be greatly appreciated!
     
  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,366
    Hi and welcome @juicedup,

    One way to get pixelated look is to adjust your UV coordinates. You should look into pixelation effect tutorials and tips all over the web. You can apply same techniques as used in pure code-authored shaders.

    But here's one simple example I made. Maybe this gives you some ideas.

    20201112_pixelated_noise.PNG
     
    Chazzwazzler likes this.
  3. juicedup

    juicedup

    Joined:
    Aug 18, 2019
    Posts:
    17
    I see!
    Thank you very much!@
     
  4. juicedup

    juicedup

    Joined:
    Aug 18, 2019
    Posts:
    17
    I must have messed up somewhere because my shader isn't behaving as expected.



    I can't tell why my texture is being brightened when I have noise strength at 0
     
  5. juicedup

    juicedup

    Joined:
    Aug 18, 2019
    Posts:
    17
    Nvm, just had to clamp the white value from going over 1
     
  6. juicedup

    juicedup

    Joined:
    Aug 18, 2019
    Posts:
    17
    How would I make the pixelated noise appear only in screen space?
     
  7. juicedup

    juicedup

    Joined:
    Aug 18, 2019
    Posts:
    17
    I would like the effect to have as much pixels when it's zoomed in as it is zoomed out.
    Can anyone tell me how I'd go about doing this?
     
  8. juicedup

    juicedup

    Joined:
    Aug 18, 2019
    Posts:
    17
    Or should I just not a have a really big tiled texture?
    I want the texture to be big enough to move around from level to level and to have a pixel dissolve effect too.
    How should I go about this?
     
unityunity