Search Unity

Hair Shader

Discussion in 'Shaders' started by atmuc, Jul 31, 2017.

  1. atmuc

    atmuc

    Joined:
    Feb 28, 2011
    Posts:
    1,162
    I have a character created by iclone character creator. i export it as fbx. it looks different in akeytsu and in unity with different rendering modes in standard shader. is it a geometry problem? i want to use fade option. i tried double sided version of standard shader. what is the best solution for this geometry?

    in iclone character creator.
    hair_cc.jpg

    in akeytsu;
    hair_akeytsu.jpg

    in unity as cutout
    hair_unity_cutout.jpg

    in unity as fade
    hair_unity_fade.jpg

    in unity as transparent
    hair_unity_transparent.jpg
     
    cihannakgul likes this.
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,342
  3. atmuc

    atmuc

    Joined:
    Feb 28, 2011
    Posts:
    1,162
    thanks @bgolus . it looks better with your shader. there is still cutout effect. i am not sure if hair shaders on the asset store can solve transparency sorting problem.
     

    Attached Files:

  4. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,342
    Yep. My shader does it's best to try and hide the cutoff, but it's still using alpha test for proper transparency sorting.

    I don't believe any of the hair shader assets will, no. The transparency sorting problem is a "this is how real time transparency works" thing.

    I wrote some stuff about it here: https://forum.unity3d.com/threads/render-mode-transparent-doesnt-work-see-video.357853/#post-2315934

    Since I wrote that post there have been several OIT (order independent transparency) approximation implementations, both for pay (on the asset store) and free (usually on github, but several have threads on this forum), using the weighted blending technique. I don't know if any have any kind of decent shading model, they might all just be unlit or using a basic lambert / blinn phong shading.
     
  5. cihannakgul

    cihannakgul

    Joined:
    Oct 24, 2019
    Posts:
    15


    is there any free hair shader?

    i'm asking you because i realized now that you are a turkish haha!