Using Material Functions with Landscapes

Take your “Layer Sample” node and hook it up to your alpha pin. I was always clear what to connect there. You said you tried it but it did not work. You did not say that previously. What didn’t work?

8af86940c84120c8da5693632f7ec24dff5187ca.jpeg

Simple setup. Two layers as functions with UV input. “LAYER SAMPLE” is only alpha. The name of the layer needs to match the name of a layer in the landscape tool, just as your “Layer Blend” nodes would have to match.

On the terrain I painted a U. Notice the different layers are at different scales:

Now here I will add heightlerp using a checker pattern. The “checker” could be a texture or anything, doesn’t matter:
b0d3368779c6cb8def37accc7a2abf77c2c57b18.jpeg

The affect on terrain is to modulate the paintable layer with the supplied height input:
5b8ef326c42ac7a4e425543d3e9cc4d08a736cbd.jpeg

Here is multiplying by checker instead of heightlerp. Thats like an additional mask:
7b58d70b98fd203f12cb7108ecf2c79692e35058.jpeg

Here is the result on the landscape:
b62cca4ce4586442141a44e9c872aaa4d05afa62.jpeg