Please note: The digital character in this package is provided under a restricted license for educational and non-commercial use only and attribution to Unity is required. Please read the license terms.
The technology stack is under Unity’s standard Asset Store EULA.
This package includes a new strand base hair system that integrated from the AMD’s TressFX hair system. This hair system supports both Universal Render Pipeline (URP) and High Definition Render Pipeline (HDRP). Our goal is that this real-time strand hair simulation and rendering system support for cross platform from desktop computer, consoles to mobile devices.
While this hair system has a lot more work remains to be done, we’re sharing what we have at the moment. You’re free to use or modify it to fit your productions and build if needed.
For more information of the hair creation workflow, please check out our Blog
HairFX Core package only is also available on github here
- Unity 2021.2.13f1 +
- Universal Render Pipeline 12.1.4 +
- Defender character with Multi-Hair styles
- Custom ShaderGraph shader for URP:
- Marschner lighting hair shader
- Pre-Integrated skin lighting shader
- Parallax eye shader
- Anisotropic lighting shader
- Multi Detail or Thread map shader
-
Option 1: Clone via Git or GitHub Desktop
- Install Git LFS if you clone via Git, (not required for GitHub Desktop)
- After cloning is finished that Inside the repository, run
git lfs install
Option 2: Direct Download the Zip file
-
Launch the project with Unity Editor
-
Open the sample scene: Assets/(URP) Defender - Character Demo/Scenes/Char_Test.unity
- The TressFX Exporter plugin for Maya is in Libray/PackageCache/cn.unity.hairfx.core/Maya_TressFX_Exporter~ folder or download here
- This hair system is not the same hair system that show in ENEMIES demo video, which is separate hair system that created by Unity DemoTeam, you can find it on github here
If you build this hair system to mobile platform, please try to limit the total hair strand count less then 10 thousand in the viewing screen to maintain good frame rate. The performance of FPS is also depend on your device hardware.
Currently not supports Huawei mobile phones due to some device does not support StructuredBuffer for vertex program in shader
Also this hair system tested mainly on iPhone, it may not compatible all Android mobile device