Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
12 Commits
 
 
 
 
 
 

Repository files navigation

UnityHairShader Version 9

This version uses blue noise and alpha to mask dithering to produce significantly better rendering when layering lots of hair strips on top of each other. Be aware however, while this is temporally stable, it is not view angle stable -- it must be used with some kind of Temporal Anti Aliasing or Motion Blur.

The results are much, much better though.

UnityHairShader Version 6

A hair shader originally built for the sine.space virtual world, designed and built for Unity3D's PBR rendering system.

Preview image

Leverages the Anisotropic Rendering released by Matt Dean availible from https://github.com/Kink3d/AnisotropicStandardShader - and incorporates features from Alan Zucconi's implementation of EA's Frostbite Fast Translucency algorithm (GDC 2011).

Quick Summary:

  • Anisotropic highlights
  • PBR-ish. Has option to tweak/remove unrealistic fresnel highlights.
  • Optional variant with Normal Map support
  • Double Sided (optional - delete the first pass if you dont need it)
  • Works with Shader Model 3.0 (Normal Map variant requires SM 4.5, but will fallback to SM 3.0 variant)

Notes:

  • Is going to be kinda heavy. Performance seems OK here, but could probably do with optimisation.
  • We render the lower pass using alpha testing versus blending; this fixes a host of issues with ordering; it's a little smelly, but it works better over all.

Shows up as 'Sine Wave/Modern/Adam's Hair Shader 1.0' (Plain variant) and 'Sine Wave/Modern/Adam's Hair Shader 1.1' (Normal variant)

About

A hair shader for Unity 5 originally built for the sine.space virtual world

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.