Download

Programming Material Functions in C++ instead of Blueprint Spaghetti

In order to better handle complex procedural materials, I’d like to do that in C++ instead of Noodling. :slight_smile:
Does anybody have some examples/links, how to do this?

OFFTOPIC
First thing that came to my mind when I first read Spaghetti:

https://www.youtube.com/watch?v=SW-BU6keEUw

Does anybody have a simple example how to create a material from scratch just using C++?
I’m not asking about loading an existing material but creating an empty material object and setting parameters and textures procedurally.

You can use the custom node and write HLSL code inside said node if the material editor doesn’t have what you need. I don’t know if it’s possible to do what you are asking about, though. Maybe message RyanB and ask him for some answers regarding your question.