You cannot declare a function in a custom node, yet you can do so with ease in UE4 shader files, located in Engine/Shaders.
Make your own USF file with your functions, and include it to Common.USF
Then you can call it from custom node.
You cannot declare a function in a custom node, yet you can do so with ease in UE4 shader files, located in Engine/Shaders.
Make your own USF file with your functions, and include it to Common.USF
Then you can call it from custom node.