Combining Landscape Heightmap Blend + Slope/World Height Constraints

Hi guys,

I’ve been working on blending two landscape material layers together with the following requirements:

  1. Needs to be procedurally generated based on landscape height and slope
  2. Needs to take advantage of heightmap blending for the really nice looking blends
  3. Needs to be paintable for minor edits once the procedural pass is finished

I’ve been able to achieve steps 1 and 2 separately but I’m not sure how to combine them such that they work in tandem. I haven’t even started trying to figure out #3 due to my current issue.

Any thoughts?

Here’s a screenshot for reference (material setup + what it looks like): https://i.imgur.com/FM6oAP8.jpg

Edit: for clarification, I’m blending two material layers with heightmaps. If they were just texture inputs it would be much easier because I could use functions like Lerp and Add and such. I’m not sure how to combine material functions with the stuff I’m trying to do in #1 (listed above).