Search Unity

Bug HDRP hair shader and area lights: do they work toghether?

Discussion in 'Shader Graph' started by supaworst, Jan 2, 2021.

  1. supaworst

    supaworst

    Joined:
    Mar 26, 2012
    Posts:
    45
    Hello,

    i'm trying to use the hair shader to render some character's hairs but, after changing the shader from lit to hair, they become totally dark.
    My scene is lit with an area Iight and i found out that, if i change my light to any ohter kind of light (directional/poiunt/spot) the shader works and seems to be broken just with area lights.

    Is it a current limitation or i'm missing something?

    Thanks in advance
     
  2. keeponshading

    keeponshading

    Joined:
    Sep 6, 2018
    Posts:
    937
  3. supaworst

    supaworst

    Joined:
    Mar 26, 2012
    Posts:
    45
    Hi, thanks for the reply. Probably the shader is broken, maybe someone from the developers could confirm that.
     
  4. chap-unity

    chap-unity

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    766
    Hello @supaworst, Indeed the shader looks broken with area lights, it's also the same with the fabric shader..
    A report has been made and hopefully a fix will come soon !

    Thanks again for reporting.
     
    keeponshading likes this.
  5. supaworst

    supaworst

    Joined:
    Mar 26, 2012
    Posts:
    45
    Thanks for your reply, i'll wait for the fix then...
     
    keeponshading likes this.
  6. chap-unity

    chap-unity

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    766
    Quick update on the subject, it's not that it's broken, it's just not supported for the moment. Documentation is being updated to reflect this.
    It's on the road map but can't really give you an estimate as we don't really know when this will be taken care of !
     
  7. supaworst

    supaworst

    Joined:
    Mar 26, 2012
    Posts:
    45
    Thanks, explaining the situation in the documentation is definitely a good solution, I'm looking forward to the implementation :)