Can i use materials within a landscape material?

Hello!

i’m currently playing arround with the landscaping tools and tried to paint my world.
I’m wondering if it is possible to use materials(not textures) within the landscaping material itself.
For example the starter content pack already has M_Ground_Grass and a couple of other materials defined.
I just want to plug those into the landscaping material to paint the world with. Is this possible?

Thanks in advance.
Robert

That’d be great. Saving a ton of complexity for having the all materials in one graph only.
I’m also interested to know that.

No, but if you make all your materials as functions you can easily add them to a single material.

Care to make a very simple example with a couple starter content materials?

It’s pretty easy actually, just create an empty material function in your content browser, open a material you would like to use as a function, copy all the nodes, open the function you created and paste in the copied material nodes, add the required outputs to the function and make the required links from the nodes. You’ll want to check the ‘expose to library’ checkbox in order for the function to show up in a material graph.

There’s a bit more info here too which describes making a layered material using functions: Layered Materials | Unreal Engine Documentation

If you struggle in any way, I will make an example tonight. :slight_smile:

I can create a material function for each landscape layer, then add the functions to my main material, but there I have problem extracting each map from the function.
If you get a chance to create an example of what OP says that’d help us a lot.

Thanks. :slight_smile:

Thanks alot. Im going to try that today.

@: If im able to get it done i will upload my results aswell.

I forgot to mention that there are the ‘Make Material Attributes’ and ‘Break Material Attributes’ nodes which you can use to combine and extract the various outputs. (see the second link I added above)