Search Unity

Question Double Sided Transparent Shader URP

Discussion in 'Shader Graph' started by alexxUID, Dec 21, 2020.

  1. alexxUID

    alexxUID

    Joined:
    Jan 14, 2020
    Posts:
    48
    Hi,

    I try to create a shader for a tube like object. I want it to be transparent and have front and back facing faces have shading.
    It all works fine until i switch the surface from opaque to transparent in the shader.
    Then I get this result:

    DoubleSidedTransparent.png
    (That is for the sake of clarity the default sphere in the preview)
    What is happening here.
    Is it not possible in URP to have a double sided and transparent object?

    Thanks

    Alex
     
    hhoffren likes this.
  2. carlastreckwall

    carlastreckwall

    Joined:
    May 30, 2018
    Posts:
    6
    Hi Alex, same issue here. The object looks fine from the outside but one I "enter" the GameObject in PlayMode everything becomes white. Did you find a solution?
    Thanks
    Carla
     
  3. DEEnvironment

    DEEnvironment

    Joined:
    Dec 30, 2018
    Posts:
    437
    you may be looking for a round math operation commonly called two-sided sign

    i dont know about shader graph but you could find this in amplify editor
     
  4. alexxUID

    alexxUID

    Joined:
    Jan 14, 2020
    Posts:
    48
    I still find it strange that there is no double sided switch in a shader that does that without hassle.
    As I remember I did not invest that much more time in it but rather just doubled the faces and mirrored the normals.

    But still curious for the solution though.