Function node isn't adding directives
Posted: Fri Jul 13, 2018 2:50 am
I have some include cginc directives that I want to add to a function when it's in use. In shader type surface, it works fine when I first import the node, but it disconnects on the next recompile. I have to reimport it for it to reapply. It doesn't work at all in shader type unlit. Nothing is included. I have to manually apply them into the main shader which is quite tedious and makes it difficult for anyone else to use the function.