Material height blending with min & max heights

I am trying to blend textures based on height, but I want to limit the blend between a min and max height, so that the texture only appears at a specific height, and not below or above.

I have been looking and trying different approaches but I hit a wall. Can anyone point me in the right direction?


Hey Stephane Roncada,

It sounds like you needs to clamp the inputs of your heightmaps. i.e clamp the darkest and lightest values. Could you provide me some screenshots of what you have so far so I can take a look at how you are approaching the process?


Hi Andrew,
I got it figured out and it’s working great for me. I’m posting a screenshot of the Material Function I created, which lets you enter a Min and Max height and falloff, use a breakup mask for the transition and a few other things related to the breakup mask.

Maybe it will be useful for someone else looking to do the same thing :slight_smile:

Thanks, worked a treat!