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

Hair Transparent shader URP

Discussion in 'Shaders' started by ArinFaraj, Mar 27, 2020.

  1. ArinFaraj

    ArinFaraj

    Joined:
    Jan 5, 2014
    Posts:
    13
    Hi everyone I imported a character from iclone character creator but I had issues with the hair materials ignoring depth n stuff so I searched everywhere but couldn't find the exact solution so I used shader graph and found a way to somewhat fix it, so I wanted to share it with you

    I'm not pleased with the results yet, also I'm new to shaders so I'm not saying this is it.
    it still needs a lot of improvements, and please if you have a better solution share it here


    as you can see it fixes the depth issue kind of.

    so this is what you have to do:
    duplicate the hair mesh object and leave the first one with the lit transparent shader
    then on the second one make new material for the hair and replace it with the old one then make a new shader for the new material and this is what u need to do

    just put the texture on the material and you are done maybe add the normal texture too its up to you
     
    Last edited: Nov 25, 2020
  2. As_day

    As_day

    Joined:
    Nov 21, 2013
    Posts:
    3
    You only need add more one slot material and assign dither transparent material to this slot
     

    Attached Files: