Create custom HLSL code functions inside the Custom node right in the Material editor.
https://dev.epicgames.com/community/learning/tutorials/oMPe/unreal-engine-user-defined-functions-in-material-graph-custom-hlsl-node
1 Like
It’s a lifesaver! Thank you!
Does anyone know how much of an impact this approach has on performance? I’m still a noob in many UE aspects, and profiling this is way too much for me right now.