How to declare function in material custom node?
I want to store some codes in a function that update some of my variable that can be called from main function,i turned on shaderdeveloopment in coonfiguration but it didnt give much information float3 tex; float rh=1; float prh; float th; float pth; float ri=0; float hs; float ph; float uvd;
asked Dec 17 '16 at 12:26 PM in Rendering
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.
answered Dec 18 '16 at 06:16 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here