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. Dismiss Notice

Question Transparent alpha mode creates unwanted jagged outline

Discussion in 'Shader Graph' started by ph4ntomz, Apr 8, 2020.

  1. ph4ntomz

    ph4ntomz

    Joined:
    Jul 22, 2016
    Posts:
    37
    I am currently working on a transparent shader and noticed that all my works have a jagged dark outline. I guess I've used the wrong settings somewhere, but I've been fiddling around with a couple settings without any success. I have created a basic shader, which shows the shader settings I use and the problem.

    It might be a little hard to see on the screenshot, so please have a look in full resolution. There's a small black outline around the circle on the yellow background.
     

    Attached Files:

  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    Hi,
    You are feeding the color with white shape and the black background to both alpha and the color. Most likely that black is spilling over, so to speak. Try with solid white color and that same shape as the alpha channel.
     
    ph4ntomz likes this.
  3. Elizabeth_LeGros

    Elizabeth_LeGros

    Unity Technologies

    Joined:
    Jan 7, 2020
    Posts:
    50
    I would also turn down your alpha clip, as it is likely keeping you from getting the full fade desired effect
     
    ph4ntomz likes this.
  4. ph4ntomz

    ph4ntomz

    Joined:
    Jul 22, 2016
    Posts:
    37
    Just using the alpha channel and turning down the alpha clip worked! Thanks for the quick replies <3