Search Unity

Question How i can reproduce this effect ?

Discussion in 'General Graphics' started by BigBadWouf, Dec 10, 2022.

  1. BigBadWouf

    BigBadWouf

    Joined:
    May 22, 2019
    Posts:
    2
    Hello,

    I have a very simple shader in Unreal 5 and i try to achieve the same effect in Unity. My knowledge of shader is very limited and i dont know all subtility of Unity and it workflow.

    This is the effect i want reproduce :
    TwoSidedSign.png

    it's working in any direction, without pass any parameter to the shader.

    According the UE doc :
    The TwoSidedSign expression is useful for flipping the normal on backfaces of two sided custom lighting materials to match the functionality of Phong. +1 for frontfaces, -1 for backfaces of a twosided material.

    I have read some threads about fliping normal on backface, but two things... One, i dont understand the quarter of what i've read, second, what i've understanding tell me is not fit my need.

    The final goal is make it simple as possible to be used with different material (like in the screen, the simplicity give me a possibility to apply that on a lot different materials).

    Thanks you and sorry for my horrible english !
     
  2. BigBadWouf

    BigBadWouf

    Joined:
    May 22, 2019
    Posts:
    2
    So, finally...
    After few hours...
    Shader.png

    Just need some adjustment with light or maybe unlit, idk...
     
    Last edited: Dec 10, 2022
  3. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,348
  4. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,348
    Oh, you got it already