I am trying to make a Custom Node but I cannot stand using the string text editor. Any line that overflows on a tiny little square makes it literally impossible to select a line and insert text. So I need to create the file.
I looked at this page and it does not tell me how to create the file.
https://docs.unity3d.com/Packages/com.unity.shadergraph@6.7/manual/Custom-Function-Node.html
So I made a text file with .hlsl file extension. That is not accepted for the source file. It has to be a .cginc file. So I make it that instead. File can be used.
After failure, I look at this tutorial and copy his function. But he created an hlsl file.
All I get is “Undeclared Identifier MyFnc_float_float at line 196” with his function.
Every tutorial I’ve found are 2-3 years old using C# for custom nodes which is not supported anymore. On top of that
I don’t understand what is wrong, what changed and where can I find working tutorials for this.