Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Outline Shader Alpha Issues

Discussion in 'Shader Graph' started by CyrusGB, Jun 27, 2022.

  1. CyrusGB

    CyrusGB

    Joined:
    Dec 19, 2020
    Posts:
    1
    1. Hey I'm working on an outline shader in unity and I'm having some issues. everything works correctly except for the alpha channel. previously I would just bring the texture alpha over to the "Fragment Alpha" and it worked fine but now I need my outline alpha (2) to be combined with my texture alpha (1), and I cant seem to figure it out.
    2. I've tried addition, subtraction, multiplication, and division just to see if it would work and I haven't gotten anything desirable.
     
  2. matjumon

    matjumon

    Joined:
    Mar 20, 2019
    Posts:
    15
    Making a bit of a guess but I think you are trying to "merge" the two alpha regions into one, right? In that case, you can simply max() the two values together and that will yield the union of both masks :)