Hiyo! I’m attempting to smooth over the process of including HLSL files in my materials. So far what I’ve found is that I can store code for the Custom node in an HLSL file by adding in the custom node’s Code property:
#include "C:/Shaders/ShaderCode.hlsl"
return 0;
As you can see, the path is literal, which introduces a lot of issues with packaging and source control. Is there any way for me to use a relative file path or macro to include these files in source control and packaging? Preferably, the path would reference a path in the project folder.