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