Search Unity

[Deprecated] Stylized Hair Shader (Desktop/Mobile)

Discussion in 'Assets and Asset Store' started by StaggartCreations, Oct 6, 2017.

  1. StaggartCreations

    StaggartCreations

    Joined:
    Feb 18, 2015
    Posts:
    2,266
    (Deprecated due to lack of sales)





    A stylized shader modeled after modern hair rendering techniques. Ideal for cartoony or anime aesthetics.

    Supports Shader Model 3.0 OpenGLES2 and up.

    Features:
    • Custom material inspector, for ease of use
    • Toon- or soft shading
    • Simple or anisotropic specular highlight based on the Kajiya-Kay model
    • Opaque or cutout rendering
    • Double sided, front- or back face culling
    • Directional Light lighting, or vertex lit (points lights)
    • Shadow casting and receiving

    Full shader parameter list can be found here

    Written from the ground up to run fast on mobile devices. Where most operations are done on a per-vertex basis, making this shader very efficient. Various shader features can be disabled to aid performance.

    Contents:
    • Documentation
    • Demo scene + head model (Creative Commons license)
    • Stylized Hair Shader (fully commented source code)
    • A sample anisotropic diffuse and normal map

    For the best specular highlight, the UVs of your hair strands must be laid out vertically.

    Due to the stylistic nature of the shader, indirect lighting (light probes, Enlighten) is not supported.
     
    Last edited: Jul 4, 2018
    theANMATOR2b likes this.
  2. StaggartCreations

    StaggartCreations

    Joined:
    Feb 18, 2015
    Posts:
    2,266
    - Reserved for changelog -

    The package has been submitted and is waiting to be reviewed. It is priced at $10
     
  3. StaggartCreations

    StaggartCreations

    Joined:
    Feb 18, 2015
    Posts:
    2,266
  4. KarlGG

    KarlGG

    Joined:
    Nov 4, 2014
    Posts:
    34
    Just a note, the link from the asset store page goes to the water forum, not hair.

    Looks great!
     
    StaggartCreations likes this.
  5. shamsfk

    shamsfk

    Joined:
    Nov 21, 2014
    Posts:
    307
    Hi! I'm using Toon Colors Pro 2 for our game. Have you tested would they be compatible? There are some issues with mixing TCP2 with other shaders in the scene but it is like defacto toon shader nowadays.
     
  6. StaggartCreations

    StaggartCreations

    Joined:
    Feb 18, 2015
    Posts:
    2,266
    I don't own TCP2 so I can't check. But I don't see how two shaders would conflict, as they would be on separate materials. The shader does work in both Deferred and Forward rendering.
     
  7. Rahd

    Rahd

    Joined:
    May 30, 2014
    Posts:
    324
    hi would love to buy it ,Gonna buy the FANTASY ADVENTURE ENVIRONMENT next month just for the shaders !!
    please add more lovely work to your store like a stylized shader pack maybe :p
    cheers
     
  8. NeatWolf

    NeatWolf

    Joined:
    Sep 27, 2013
    Posts:
    924
    I'd love to have this asset resurrected, along with soft-edged proper sorted double sided self shadow casting hair strand support! :)
    Maybe add vertex painted weights to apply some physics to the strands?