Search Unity

Question How to remove the transparent pixels that surrounds Shader Graph's default rectangle?

Discussion in 'Shader Graph' started by neokit, Apr 4, 2021.

  1. neokit

    neokit

    Joined:
    May 28, 2016
    Posts:
    6
    Try it yourself, Create a simple rectangle node in shader graph and you will notice some transparent edges all around it.

    I'm making a pixel-style game and this effect seems so unmatched with the environment, Is there any way I can do to replace all these transparent pixels with a complete white color (1,1,1,1)?

    I just want a basic rectangle, No transparency.

     
  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    Did you try to add a floor or round function to the output? That should produce black and white image with no gradients.