Been wondering how to create shaders within a source build of UE4. I know how to write HLSL, and have limited knowledge of UE4’s .usf shaders. However, I have no idea what to do with .usf files I create. Various sources say that all I have to do is create an #include of my .usf shader within MaterialTemplate.usf and then add an #include within a custom node in the material editor, however as far as I know MaterialTemplate.usf does not exist. I’ve found MaterialTemplate.ush, however that doesn’t seem to be the right file. Ultimately, I just want to create a simple passthrough shader and somehow use it on an object with a custom shading model I’ve written.
Alternatively: instead of mucking around with .usf files, is it possible to create an HLSL shader and use that?