Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity Blacksmith demo Volund/Standard Hair shader forces hair to black

Discussion in 'Shaders' started by ArachnidAnimal, Apr 6, 2017.

  1. ArachnidAnimal

    ArachnidAnimal

    Joined:
    Mar 3, 2015
    Posts:
    1,760
    I downloaded the Blacksmith demo to look at the hair.
    https://www.assetstore.unity3d.com/en/#!/content/39941

    The hair is always black. I looked at the Hair_setup.cginc file that the Volund/Standard Hair shader uses. They have the following line:
    diffColor *= grayMask; (around line 132) ????
    This is essentially forcing the diffuse color to very dark shade. I commented out the line, now I can set hair color to whatever.

    freehaircolor.png

    I don't really know much of anything of shaders or the .cginc files. But this seems to work,I have to play around with it more to better understand how this shader works.