TressFX 4.0 hair rendering

Hi all, we released the latest, updated version with many more features and made a new thread:

https://forums.unrealengine.com/development-discussion/engine-source-github/1685378-tressfx-hair-for-unreal-release-open-source

Hello @kostenickj ! Thank you for making Tressfx available on Unreal.

As I was testing the plugin, I came across a problem. The plugin works with the sample provided on your github page. However, when I try to activate Tressfx plugin inside my converted project, Unreal keeps crashing when launching the editor.

This is the error message that I get:

"…Documents/UE4.23_TressFX/Engine/Shaders/Private/TressFXVertexShader.usf(45,14-39): Shader FTressFXVS<true>, Permutation 0, VF FTressFXVertexFactory:
error X4580: Output variable OutGlobalClipPlaneDistance contains a system-interpreted value (SV_ClipDistance) which must be written in every execution path of the shader. Unconditional initialization may help.

/Engine/Private/TressFXRendering.ush(220,5-17):  warning X3206: implicit truncation of vector type
/Engine/Private/TressFXVertexShader.usf(45,14-39):  warning X3578: Output value 'OutGlobalClipPlaneDistance' is not completely initialized
/Engine/Private/TressFXVertexShader.usf(45,14-39):  error X4580: Output variable OutGlobalClipPlaneDistance contains a system-interpreted value (SV_ClipDistance) which must be written in every execution path of the shader.  Unconditional initialization may help."

Any help is welcome! :slight_smile:

Hi, would you mind opening an issue on github so this issue is easier to track? https://github.com/kostenickj/UE4_TressFX/issues
I will take a look at this this week. Also, message me on discord for faster replies and iteration time :slight_smile:

Thanks, I will do! :slight_smile:

TressFX 4.1, Engine Integration with Unreal 4.22 and Radeon™ Cauldron