Landscape Layer foliage CustomDepth Stencil setting

Hello, can someone help me find an option to enable Custom Depth stencil with specific value on foliage on landscape foliage layer? While enabling it on landscape itself, it does not affecting foliage sadly, which causes artifacts, as seen on screenshot. Thank you!

You need to see the mesh you spawn and modify the mesh settings and/or the material.

It gets pretty darn expensive depending on total instances…

What is the end result you want vs what you have now?