Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Preview and object with material are different than last node (Add) in shader graph

Discussion in 'Shader Graph' started by Kacper1263, Mar 21, 2020.

  1. Kacper1263

    Kacper1263

    Joined:
    Apr 7, 2019
    Posts:
    11
    Hello,

    I do not quite know shader graph, I made myself a shader that creates outline on 2D sprite. On the last node (Add node) on its preview everything looks ok, outline is thick but on the preview and on scene it's thin.

    Can somebody explain this to me? If I did not provide enough information, please let me know.
    Thanks!

    upload_2020-3-21_12-39-31.png
     
  2. codxr

    codxr

    Joined:
    Jun 19, 2019
    Posts:
    11
    How does your color look like?
    I had a similar problem ... the problem was that the alpha value of my color was set to 0.
     
  3. Kacper1263

    Kacper1263

    Joined:
    Apr 7, 2019
    Posts:
    11
    unfortunately due to optimization problems on URP I had to move to a regular 2D project to be able to continue working. I'm not sure what the alpha was but there is an option that was equal to 0