Realistic Hair Shader

This hair shader is based on Kajiya-Kay lighting model. The hair shader has a good approximation to represent specular, self shadow, back lit(rim light) and colors. And the specular and shadow can react to both of light direction and camera direction:

HairDemo from Yunhao Huo on Vimeo.

This picture clearly shows the specular effects and “volumetric feeling” due to the self shadowing. And also I unified the normals across each hair card, so it’s hard to tell the feeling of “hair cards”:


Because this shader used dithered alpha blending, the shader is using mask blending mode, so the overall shader is not that expensive and also maintained good blending of the hair tips.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s