# Combine to Lerp nodes for landscape texture (distance based scale, tiling, marco variation)

**URL:** <https://forums.unrealengine.com/t/combine-to-lerp-nodes-for-landscape-texture-distance-based-scale-tiling-marco-variation/536801>\
**Category:** World Creation\
**Tags:** unreal-engine, UE5-0, Landscape, question\
**Created:** [April 22, 2022, 3:15pm UTC](https://forums.unrealengine.com/t/combine-to-lerp-nodes-for-landscape-texture-distance-based-scale-tiling-marco-variation/536801 "2022-04-22T15:15:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BKM-C](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BKM-C](https://forums.unrealengine.com/u/BKM-C)\
**Post date:** [April 22, 2022, 3:15pm UTC](https://forums.unrealengine.com/t/combine-to-lerp-nodes-for-landscape-texture-distance-based-scale-tiling-marco-variation/536801/1 "2022-04-22T15:15:53Z")

</div>

Need help with combining 2 lerp nodes which haves information about distance based scale, tiling, marco variation. I have 2 examples of combining, in first one macro variation and tiling works for only near distance landscape. In second one it`s inverted (works only for far distance)  
Thanks!

 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/1/6/4163573afced0c3baeb346ba64346270ee79d6e5.png)  
 ![1-1.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/8/ea84efa807dab8c0ac25e04dec84470d0cf307be.jpeg)  
 ![2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/3/6/8360c7212fb04d77ddd08405b1ebb4438d7fab9e.png)  
 ![2-2.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/7/8/a78dd37d0be1207ea57c11a427521b17ae4cece9.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [April 22, 2022, 6:07pm UTC](https://forums.unrealengine.com/t/combine-to-lerp-nodes-for-landscape-texture-distance-based-scale-tiling-marco-variation/536801/2 "2022-04-22T18:07:54Z")

</div>

I can’t see the materials properly, but combining lerps is just about taking the output of both and feeding them into the inputs of another lerp. You can then make a parameter to control that lerp.

You’ll probably need to repeat the process for albedo and normal, at least…

---

<div class="post-metadata">

**Author:** ![BKM-C](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BKM-C](https://forums.unrealengine.com/u/BKM-C)\
**Post date:** [April 23, 2022, 7:47am UTC](https://forums.unrealengine.com/t/combine-to-lerp-nodes-for-landscape-texture-distance-based-scale-tiling-marco-variation/536801/3 "2022-04-23T07:47:57Z")

</div>

Thank you a lot for reply. Yes, I tried combine them with another lerp, just plug in A and B socket, without Alpha and without Alpha. To Alpha I take from CamerDepthFade. Without Alpha doesn`t work, with Alpha pluged still losing macro var and tiling for far distance.

 ![3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/8/2181883fb1b010a6f628c5fb5112ff3f3799f285.png)  
 ![3-3.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/e/47ef2b7ee3033dbd8d8c5c54515ccb59c5c4d4b6.jpeg)  
 ![4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/6/206a60495d00ab3a7782527ada6cfb702a25d163.png)  
 ![4-4.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/c/44cdf5ed74a15ec027d12c38dee34bad0df7616c.jpeg)

Hope you can see it better. Sorry for my english.

 ![5.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/7/087d5c452f634498a3970f53a1c36432e3d6772d.jpeg)  
 ![6.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/e/0be8ca91c0a1da189ce4c5c3d741e579ab20fff9.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [April 23, 2022, 7:54am UTC](https://forums.unrealengine.com/t/combine-to-lerp-nodes-for-landscape-texture-distance-based-scale-tiling-marco-variation/536801/4 "2022-04-23T07:54:13Z")

</div>

I think you need camera distance, not camera depth fade. See this post:

> [@Camera depth fade not working](https://forums.unrealengine.com/t/camera-depth-fade-not-working/480748):
>
> Hello all. I have a question about using camera depth fade in my material. I have fog in my scene that needs to fade out when I get close to it. Best would be if it was based on camera location, but I cant seem to get it to work. In the material editor, it gets the result I want, but in game it just messes up my texture. Any idea how to implement the fade? My texture already has so many nodes, I don’t know where to implement the depth fade. My material is translucent. (iam not using UE fog…

PS: I assume it works if you tweak the lerp with a parameter?
