# How to use stencil buffer with the foliage on UE5

**URL:** <https://forums.unrealengine.com/t/how-to-use-stencil-buffer-with-the-foliage-on-ue5/2014769>\
**Category:** Rendering\
**Tags:** stencil, unreal-engine, Foliage, question\
**Created:** [September 10, 2024, 2:36pm UTC](https://forums.unrealengine.com/t/how-to-use-stencil-buffer-with-the-foliage-on-ue5/2014769 "2024-09-10T14:36:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JungVVV](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jungvvv/32/971212_2.png) [@JungVVV](https://forums.unrealengine.com/u/JungVVV)\
**Post date:** [September 10, 2024, 2:36pm UTC](https://forums.unrealengine.com/t/how-to-use-stencil-buffer-with-the-foliage-on-ue5/2014769/1 "2024-09-10T14:36:54Z")

</div>

how to use stencil buffer with the foliage on UE5?

is it passable to do that?  
because I couldn’t find any values setting it up on Derails tab material editor and mesh.

I found below image but it’s been disabled like image below.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/6/8a6c66a62fcd2de016dda55731b364160ce7b678.png)
