Stylized Hair Shader - Unreal Engine 4

Опубликовано: 30 Март 2026
на канале: POLYTRICITY
6,822
57

Quick video on the features of this product.
Source for the UE4 Product: https://unrealengine.com/marketplace/...
Hair strand Desginer: https://robertramsay.artstation.com/s...

Note:
Currently there is a problem with the backlit parameter with the shader. See here
To stop the hair from glowing when it is being lit from the backside you need to edit a line of code in the ShadingModels.usf found in "Epic Games\4.19\Engine\Shaders".
Change
Code:
return HairShading( GBuffer, L, V, N, Shadow, 1, 0, Random );
to
Code:
return HairShading( GBuffer, L, V, N, Shadow, GBuffer.CustomData.z, 0, Random );

This may differ for newer versions where I found this:
https://forums.unrealengine.com/devel...

Hope this helps you. I've tested in UE4.19 and looks better. This change has to be done by yourself in your own engine version as it's a problem with UE4.