Search Unity

Question 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:
    47
    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,553
    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
     
    Cletus2000 and Chazzwazzler like this.
  3. juicedup

    juicedup

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

    juicedup

    Joined:
    Aug 18, 2019
    Posts:
    47
    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:
    47
    Nvm, just had to clamp the white value from going over 1
     
  6. juicedup

    juicedup

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

    juicedup

    Joined:
    Aug 18, 2019
    Posts:
    47
    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:
    47
    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?
     
  9. antonioniii

    antonioniii

    Joined:
    Jun 15, 2020
    Posts:
    57
    Hey @juicedup . How did this go for you?

    Were you able to achieve the exact outcome you were looking for?

    Any followup or process/images to share would be appreciated! I’m looking into dissolving sprites based on their pixel to pixel makeup.