# Hide landscape foliage/grass where an actor is placed?

**URL:** <https://forums.unrealengine.com/t/hide-landscape-foliage-grass-where-an-actor-is-placed/516217>\
**Category:** World Creation\
**Tags:** landscape-grass-type, unreal-engine, UE5-0, Foliage, Landscape, question\
**Created:** [April 6, 2022, 2:21pm UTC](https://forums.unrealengine.com/t/hide-landscape-foliage-grass-where-an-actor-is-placed/516217 "2022-04-06T14:21:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![XenoHiraeth](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xenohiraeth/32/465897_2.png) [@XenoHiraeth](https://forums.unrealengine.com/u/XenoHiraeth)\
**Post date:** [April 11, 2022, 11:53pm UTC](https://forums.unrealengine.com/t/hide-landscape-foliage-grass-where-an-actor-is-placed/516217/4 "2022-04-11T23:53:03Z")

</div>

Hey! Took me a bit to get back to this. I’m assuming you have the basics of RVT setup with this. If not let me know and I’ll add that setup as well.

Plug this series of nodes up on your grass material. The scalar parameter will determine how much to apply the occlusion.

 ![Screenshot 2022-04-11 161016](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/b/0db72cc2d81dd7e5f913a31ca0c4b171e25908b1.jpeg)

Set your default mask to zero by putting this in your landscape. I’m using the roughness channel but any black and white masking channel will do.

![Screenshot 2022-04-11 161429](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/4/eb49649e5ec052050b59330ddff119c69fe9d94c.jpeg)

Then you want to run that mask into your landscape grass output.

![Screenshot 2022-04-11 163911](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/c/49c3dc5f82ccae8ef34681782eba2a8da3b19226.jpeg)

For any meshes you want to apply the effect to, run a constant of 1 into the RVT output to ensure the RVT takes them into account.

![Screenshot 2022-04-11 164137](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/d/8/cd8cf2003ffe5ff410fd827078941473588cfae8.jpeg)

So far my object looks like this.

![Screenshot 2022-04-11 163100](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/1/a/41a309591000867a16ef3346c452919351bdd8f0.jpeg)

Not doing anything. The last step is to tell the object to render to the Virtual Texture. In the object properties Find this area.

![Screenshot 2022-04-11 164745](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/c/30c10b0608e9f2e7d3f0f092d9a0284bf0622891.jpeg)

Click the plus to add an element. Select your RVT.

![image_2022-04-11_165026753](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/a/08a51ef35143d1ee827fbd023d75df66ce9d5410.png)

Now it should look like this.

![image_2022-04-11_165144690](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/f/10f323613b033d52d1ef340f45a7a0ba9f272c12.png)

If it doesn’t work right away you may need to tweak the grass parameter.

Hope this helps!

---

_[View the full topic](https://forums.unrealengine.com/t/hide-landscape-foliage-grass-where-an-actor-is-placed/516217)._
