Material Expressions: Custom Node (How to Use?)

I’ve found this documentation:

However, the code input is a single line text field and I cannot seem to find a way to expand it into a window as shown in the documentation.

I would like to create custom nodes in the material editor that encapsulate specialized surface normal calculations and world space offsets. An example of such application would be to generate a fluid ripple effect on a normal map. I imagine it would take an existing normal map as an input and some other parameters to control the ripple effect. The custom node would contain the HLSL code that recalculates the normal map and the modified normals would come out of the node. Is this the best way to go about it?


Hey tkchen -

You should be able to type the custom HLSL in a text editor then copy all your code and select that small space and paste. It should all go in there even if it doesn’t look like it.

We are aware of needing a more robust input system in the custom node and are working on a better solution.

Thank You

Eric Ketchum

When might this happen?
It’s so painful to not know what’s going wrong and not being able to even add a carriage return.
No idea which unexpected token it’s complaining about and my text editor isn’t showing any unpaired “(”.

Any chance of an updated status on the Custom node feature improvement task?

I don’t think it is on issue tracker yet. Feel free to upvote it here.