# Visual Issue with Per Instance Fade Amount and Foliage Culling

**URL:** <https://forums.unrealengine.com/t/visual-issue-with-per-instance-fade-amount-and-foliage-culling/452498>\
**Category:** World Creation\
**Tags:** culling, unreal-engine, Foliage, fade, Blueprint, question\
**Created:** [July 19, 2019, 12:52pm UTC](https://forums.unrealengine.com/t/visual-issue-with-per-instance-fade-amount-and-foliage-culling/452498 "2019-07-19T12:52:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmmmGoodDinner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mmmmGoodDinner](https://forums.unrealengine.com/u/mmmmGoodDinner)\
**Post date:** [July 19, 2019, 12:52pm UTC](https://forums.unrealengine.com/t/visual-issue-with-per-instance-fade-amount-and-foliage-culling/452498/1 "2019-07-19T12:52:21Z")

</div>

I am having a heck of a time trying to make a simple material on my foliage fade out as it approaches its maximum cull distance. I have researched this problem as extensively as I know how and I haven’t found anything that was helpful. The closest I got was this thread: [https://drive.google.com/open?id=1xiM8G3RQgpeWx4zx3SFCnj6TfhFZHvP2](https://drive.google.com/open?id=1xiM8G3RQgpeWx4zx3SFCnj6TfhFZHvP2)

I used the thread to create the following below. I am close but I am having some crazy visual glitches when the opacity on my trees are high. It doesn’t have anything to do with the mesh itself as I tried on a default cube as well but it gave the same effect. Also not the lighting as I tried doing it in a default level and same effect. Surely there must be a simpler way to use the “Per Instance Fade Amount” node? For reference, my foliage is placed with the foliage tool on a simple floor and I have set its minimum cull distance to 2000 and its maximum cull distance to 10000 in the foliage settings.

**Material setup:**

 ![282792-materialsetup.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/0/9e0b96106a90f700ffc525207cf61e4d83a740ac.jpeg)

Here is a video of the visual glitch I am getting:

[https://drive.google.com/open?id=1wc4rHr487Zx9zcNc0LU5KR1KsWZKdvbj](https://drive.google.com/open?id=1wc4rHr487Zx9zcNc0LU5KR1KsWZKdvbj)

The problem is most noticeable when standing still.

Oh, another super strange thing. When I am in the editor and just zooming around with the camera, the material fades out perfectly. Only when I PIE does it do this crazy visual glitch. Maybe that will help narrow down the issue. I appreciate your time and help.
