In this tutorial I want to show you how to create low poly hair for Unity 3D using Hair Factory. Below you’ll find a link to the Hair Factory project as well as the code for the Transparent, Double Sided Unity Shader.
- Hair Factory can be downloaded from http://www.blendswap.com/blends/view/48987
-
Transparent Double Sided Shader:
Shader "Transparent/Double-Sided Vertex Lit" { Properties { _Color ("Main Color", Color) = (1,1,1,1) _MainTex ("Base (RGB) Trans (A)", 2D) = "white" {} } SubShader { Tags {"RenderType"="Transparent" "Queue"="Transparent"} // Render into depth buffer only Pass { ZWrite On Blend SrcAlpha OneMinusSrcAlpha ColorMask RGB Cull off Material { Diffuse [_Color] Ambient [_Color] } Lighting On SetTexture [_MainTex] { Combine texture * primary DOUBLE, texture * primary } } } }
IMPORTANT: If you’ll find ant improvement in the shader or any faults in the video, please let me know.