# \[FREE\] Hair Material

**URL:** <https://forums.unrealengine.com/t/free-hair-material/24782>\
**Category:** Asset Creation\
**Tags:** unreal-engine\
**Created:** [March 19, 2015, 5:55pm UTC](https://forums.unrealengine.com/t/free-hair-material/24782 "2015-03-19T17:55:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![MizuGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MizuGames](https://forums.unrealengine.com/u/MizuGames)\
**Post date:** [March 19, 2015, 5:55pm UTC](https://forums.unrealengine.com/t/free-hair-material/24782/1 "2015-03-19T17:55:24Z")

</div>

Hi all!

I’m making an anisotropic reflections hair material and I want to share it with the all of you.

This is the first version of the material, I hope that the community help me to improve it and make it better and bigger Hair Material for all.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/d/35da2e9a250ac8f286464d33bf6452d6a7615e69.jpeg) ](https://dl.dropboxusercontent.com/s/wx7ip6y90c67jeu/HairMaterialPromo.png?dl=0)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/2/1b23275816b8c629a8416a6b43a2d77fafe299ed.gif) ](https://dl.dropboxusercontent.com/s/sn8jfnus0hc8rih/TracerHairLite.gif?dl=0)

Version 1 Features:

[X] Solid color  
[X] Gradient color  
[X] New gradient control (more Artist friendly)  
[X] Full Highlights Control (Color, Power, Shift and Strength)  
[X] General Shift control (height)  
[X] Jitter ammount  
[X] Lit mode  
[X] Roughness control  
[X] PBR Specular Control (Affects all hair, only Highlight 1, Power)  
[X] Rim Light (Exponent, Color, Strength)  
[X] Glitter control (WIP) (Glitter Texture, Switch for highlights, Power)  
[X] Diffuse base texture (colored by Gradient or Solid color)  
[X] Highlight 1 Mask Texture  
[X] Shift Texture (more real hair, anime style…)

Note: UV’s of the hair model must be vertical (Hair root in the top, and tip in the bottom) for now

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/1/2810c21339ee4737b309edd7ee93f7f297f343fc.jpeg) ](https://dl.dropboxusercontent.com/s/xviv3dn362csxl4/HairInstance.png?dl=0)

If somebody has problems to create the material, ask me in this thread.

Full Material (Right click \> Open in a new tab/window for full size image)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/c/7ec0661b026a73b49cd91f5b5640c725762623b6.png) ](https://dl.dropboxusercontent.com/s/cwd7fc384nspwnp/HairMaterialV1.png?dl=0)

Material Function Color Gradient (Right click \> Open in a new tab/window for full size image)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/9/579fa2e43a465b62bc3b14d03b2fbc863732b312.png) ](https://dl.dropboxusercontent.com/s/qrpiiroy9d0xik8/HairMaterialV1MF_ColorGradient.png?dl=0)

Material Function Shift Tangent (Right click \> Open in a new tab/window for full size image)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/9/cf9dc3ea35e6d311ea752a11878f3a4df90b2381.png) ](https://dl.dropboxusercontent.com/s/znd5sqx3fyh6ow9/HairMaterialV1MF_ShiftTangent.png?dl=0)

Material Function Strand Spec (Right click \> Open in a new tab/window for full size image)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/f/d9f37005bc80429c232c2b163a5e617fe4aa024e.png) ](https://dl.dropboxusercontent.com/s/tsvl2jo6557uqvo/HairMaterialV1MF_StrandSpec.png?dl=0)

SmoothStep Custom Node

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/9/3090b87d7fc06f02827d0852c6e8769668c73373.png) ](https://dl.dropboxusercontent.com/s/4idlemmnpml9im0/SmoothStep.png?dl=0)

You can download the base textures [HERE](https://www.dropbox.com/s/6x0ayqodvco9zr3/BaseTextures.zip?dl=1)

Note: Highlight Mask is not included, you have to use a full white image by default.

You can see a Mini Tutorial about How to setup “LightVector” with Material Parameter Collection “MPC\_SunDirection” [HERE](https://forums.unrealengine.com/showthread.php?63555-FREE-Hair-Material&p=252791&viewfull=1#post252791)

**UPDATE:** You can download a sample package [HERE](https://www.dropbox.com/s/wyqleiadetd2kjz/HairMaterial_UE4_MizuGames.zip?dl=1)

I share this material with all of you with three conditions:

- This is \*\*FREE \*\*for all, **DO NOT SELL IT** (you can sell your games, of course, and I hope you will :P)
- If you improve it or add new features please share it here to help all the community 🙂
- If you distribute this material, please include a reference to this thread

When I’ll have free time to add some of the new features, maybe I will upload the .uasset files, but this will require some time.  
In the meanwhile, let me know if you have any problem creating the material and I will help you 🙂

All 3D models by [Mizuko](http://twitter.com/MizukoArt)

[Old Wip thread](https://forums.unrealengine.com/showthread.php?60501-WIP-Hair-Material-with-anisotropic-reflections) (For reference)

English isn’t my first language, so please excuse any mistakes. 🙂

---

<div class="post-metadata">

**Author:** ![danielIglesiasdev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@danielIglesiasdev](https://forums.unrealengine.com/u/danielIglesiasdev)\
**Post date:** [March 19, 2015, 6:08pm UTC](https://forums.unrealengine.com/t/free-hair-material/24782/2 "2015-03-19T18:08:03Z")

</div>

Ohhhhh Thank u for this great tutorial.

¡Gracias amigo! 😉

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_10b2fd67](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_10b2fd67](https://forums.unrealengine.com/u/anonymous_user_10b2fd67)\
**Post date:** [March 19, 2015, 6:39pm UTC](https://forums.unrealengine.com/t/free-hair-material/24782/3 "2015-03-19T18:39:58Z")

</div>

You. I like you.

---

<div class="post-metadata">

**Author:** ![cman2k](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cman2k](https://forums.unrealengine.com/u/cman2k)\
**Post date:** [March 19, 2015, 6:55pm UTC](https://forums.unrealengine.com/t/free-hair-material/24782/4 "2015-03-19T18:55:40Z")

</div>

Congrats on the release! I have been working on something visually similar but technically different. Very cool to see!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0df12f74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0df12f74](https://forums.unrealengine.com/u/anonymous_user_0df12f74)\
**Post date:** [March 19, 2015, 6:58pm UTC](https://forums.unrealengine.com/t/free-hair-material/24782/5 "2015-03-19T18:58:59Z")

</div>

This looks great! Thanks for sharing it 🙂

Quick tip for all: Make sure you right click on the material graph images above and select Open in a new tab/window to see the full size image!

---

<div class="post-metadata">

**Author:** ![JoshieZombie](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/joshiezombie/32/493945_2.png) [@JoshieZombie](https://forums.unrealengine.com/u/JoshieZombie)\
**Post date:** [March 19, 2015, 7:03pm UTC](https://forums.unrealengine.com/t/free-hair-material/24782/6 "2015-03-19T19:03:23Z")

</div>

This is awesome, I was going to build my own, but I would only know how to do it in substance. I am still relatively new to UE4 material editor. This should be really helpful for me 🙂

---

<div class="post-metadata">

**Author:** ![MizuGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MizuGames](https://forums.unrealengine.com/u/MizuGames)\
**Post date:** [March 19, 2015, 7:18pm UTC](https://forums.unrealengine.com/t/free-hair-material/24782/7 "2015-03-19T19:18:55Z")

</div>

> [@neo0eve;251603](#):
>
> Ohhhhh Thank u for this great tutorial.
> 
> ¡Gracias amigo! 😉

> [@AdeptStrain;251634](#):
>
> You. I like you.

> [@JoshieZombie;251659](#):
>
> This is awesome, I was going to build my own, but I would only know how to do it in substance. I am still relatively new to UE4 material editor. This should be really helpful for me 🙂

Thanks all 😃

---

<div class="post-metadata">

**Author:** ![MizuGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MizuGames](https://forums.unrealengine.com/u/MizuGames)\
**Post date:** [March 19, 2015, 7:19pm UTC](https://forums.unrealengine.com/t/free-hair-material/24782/8 "2015-03-19T19:19:59Z")

</div>

> [@cman2k;251650](#):
>
> Congrats on the release! I have been working on something visually similar but technically different. Very cool to see!

I see your Fur & Fiber Assets, really cool effect 😃

---

<div class="post-metadata">

**Author:** ![anon90101103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon90101103](https://forums.unrealengine.com/u/anon90101103)\
**Post date:** [March 19, 2015, 7:23pm UTC](https://forums.unrealengine.com/t/free-hair-material/24782/9 "2015-03-19T19:23:12Z")

</div>

By the way, you can share the material by just copying the .uasset files of it and uploading them somewhere.

---

<div class="post-metadata">

**Author:** ![MizuGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MizuGames](https://forums.unrealengine.com/u/MizuGames)\
**Post date:** [March 19, 2015, 7:24pm UTC](https://forums.unrealengine.com/t/free-hair-material/24782/10 "2015-03-19T19:24:02Z")

</div>

> [@;251653](#):
>
> This looks great! Thanks for sharing it 🙂
> 
> Quick tip for all: Make sure you right click on the material graph images above and select Open in a new tab/window to see the full size image!

I’m glad that you like it 🙂 and thanks for the quick tip! 😃

---

<div class="post-metadata">

**Author:** ![anon90101103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon90101103](https://forums.unrealengine.com/u/anon90101103)\
**Post date:** [March 19, 2015, 8:54pm UTC](https://forums.unrealengine.com/t/free-hair-material/24782/11 "2015-03-19T20:54:44Z")

</div>

I have a question, what is in the light direction parameter collection?

---

<div class="post-metadata">

**Author:** ![Raphael\_Baldi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raphael\_Baldi](https://forums.unrealengine.com/u/Raphael_Baldi)\
**Post date:** [March 19, 2015, 10:55pm UTC](https://forums.unrealengine.com/t/free-hair-material/24782/12 "2015-03-19T22:55:57Z")

</div>

> [@EIREXE;251764](#):
>
> I have a question, what is in the light direction parameter collection?

As the light calculation is now deferred (and not forward like some other engines) we don’t have a way to determine the light direction from the material anymore (.unrealengine.com/latest/INT/Engine/Rendering/Materials/ExpressionReference/Vector/index.html#lightvector). Keeping that in mind we have to provide an artificial light direction vector to the material. In this case, MiDaEm used a material parameter collection to share the information with all materials that need to access it.

---

<div class="post-metadata">

**Author:** ![Raphael\_Baldi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raphael\_Baldi](https://forums.unrealengine.com/u/Raphael_Baldi)\
**Post date:** [March 19, 2015, 10:56pm UTC](https://forums.unrealengine.com/t/free-hair-material/24782/13 "2015-03-19T22:56:36Z")

</div>

You can find more about Material Parameter Collection @ .unrealengine.com/latest/INT/Engine/Rendering/Materials/ParameterCollections/index.html

---

<div class="post-metadata">

**Author:** ![daveSchoneveld](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/daveschoneveld/32/726691_2.png) [@daveSchoneveld](https://forums.unrealengine.com/u/daveSchoneveld)\
**Post date:** [March 19, 2015, 11:03pm UTC](https://forums.unrealengine.com/t/free-hair-material/24782/14 "2015-03-19T23:03:20Z")

</div>

Awesome! thanks for the share! Looks great. Can’t wait to dissect it tonight.

---

<div class="post-metadata">

**Author:** ![MizuGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MizuGames](https://forums.unrealengine.com/u/MizuGames)\
**Post date:** [March 20, 2015, 1:28am UTC](https://forums.unrealengine.com/t/free-hair-material/24782/15 "2015-03-20T01:28:16Z")

</div>

> [@EIREXE;251764](#):
>
> I have a question, what is in the light direction parameter collection?

> [@Baldi;251845](#):
>
> As the light calculation is now deferred (and not forward like some other engines) we don’t have a way to determine the light direction from the material anymore (.unrealengine.com/latest/INT/Engine/Rendering/Materials/ExpressionReference/Vector/index.html#lightvector). Keeping that in mind we have to provide an artificial light direction vector to the material. In this case, MiDaEm used a material parameter collection to share the information with all materials that need to access it.

That’s it! 😃

Thanks for the help 🙂

---

<div class="post-metadata">

**Author:** ![MizuGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MizuGames](https://forums.unrealengine.com/u/MizuGames)\
**Post date:** [March 20, 2015, 1:30am UTC](https://forums.unrealengine.com/t/free-hair-material/24782/16 "2015-03-20T01:30:27Z")

</div>

> [@daveSchoneveld;251852](#):
>
> Awesome! thanks for the share! Looks great. Can’t wait to dissect it tonight.

Thank you and enjoy! 😃

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f1b5294d1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f1b5294d1](https://forums.unrealengine.com/u/anonymous_user_f1b5294d1)\
**Post date:** [March 20, 2015, 1:50am UTC](https://forums.unrealengine.com/t/free-hair-material/24782/17 "2015-03-20T01:50:29Z")

</div>

> [@EIREXE;251683](#):
>
> By the way, you can share the material by just copying the .uasset files of it and uploading them somewhere.

This would be really helpful for us just learning the material nodes. I have only had the to learn a few of the basic ones so far. This is above my complexity since I only get Saturdays and Sundays to play. If not no worries, thanks for this Midaem looks so realistic.

---

<div class="post-metadata">

**Author:** ![Snow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Snow](https://forums.unrealengine.com/u/Snow)\
**Post date:** [March 20, 2015, 2:00am UTC](https://forums.unrealengine.com/t/free-hair-material/24782/18 "2015-03-20T02:00:32Z")

</div>

Interesting work, MiDaEm. I just attempted to reverse engineer it and got stuck on the SmoothStep node in the MF\_StandSpec material function. It doesn’t show up in search.

If you could share the material asset files, that would be wonderful n.n

---

<div class="post-metadata">

**Author:** ![Lunchbox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lunchbox](https://forums.unrealengine.com/u/Lunchbox)\
**Post date:** [March 20, 2015, 3:03am UTC](https://forums.unrealengine.com/t/free-hair-material/24782/20 "2015-03-20T03:03:55Z")

</div>

> [@Snow;251947](#):
>
> Interesting work, MiDaEm. I just attempted to reverse engineer it and got stuck on the SmoothStep node in the MF\_StandSpec material function. It doesn’t show up in search.
> 
> If you could share the material asset files, that would be wonderful n.n

+1 Im also stuck on this. I’m pretty sure its a custom node, If you could post the code that would be great 😃

Fantastic Work! I can’t wait to get it working properly and thanks for the Share!

---

<div class="post-metadata">

**Author:** ![Necromantics](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Necromantics](https://forums.unrealengine.com/u/Necromantics)\
**Post date:** [March 20, 2015, 5:38am UTC](https://forums.unrealengine.com/t/free-hair-material/24782/21 "2015-03-20T05:38:41Z")

</div>

UE4 implements a SmoothStep function in Runtime/Core/Public/Math/UnrealMathUtility.h, here is the code:

```auto

static float SmoothStep(float A, float B, float X)
	{
		if (X < A)
		{
			return 0.0f;
		}
		else if (X >= B)
		{
			return 1.0f;
		}
		const float InterpFraction = (X - A) / (B - A);
		return InterpFraction * InterpFraction * (3.0f - 2.0f * InterpFraction);
	}

```

I’m guessing this is what the custom node needs to be:

 ![Capture.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/a/ead8ffd2792be5c07bf5f31fb956ba019e4e78db.png)

[Next page](https://forums.unrealengine.com/t/free-hair-material/24782.md?page=2)
