Search Unity

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,841
    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.