Search Unity

Question URP OutLine Shader for Transparent Objects

Discussion in 'Shader Graph' started by ergin3d, Dec 5, 2021.

  1. ergin3d

    ergin3d

    Joined:
    Jul 31, 2015
    Posts:
    30
    Hello,

    I'm trying to create a specific outline shader(URP)

    I tried numerous things but I can't achieve this look, (The orange outline of the transparent object)



    The common method of offsetting vertex positions fails in this instance because the solid color is visible behind the transparent object:



    And the fresnel causes artifacts:




    Any recommendations?
    Thanks.
     
  2. Mugentsuki

    Mugentsuki

    Joined:
    Jun 2, 2021
    Posts:
    1
  3. ergin3d

    ergin3d

    Joined:
    Jul 31, 2015
    Posts:
    30
    Thanks for the reply, this is same as my above example and not for transparent objects.