The material used in my asset is inexplicably fading out depending on the distance. How can I fix this?
Looking at the material nodes, it just seems like the mask image is connected to the opacity mask, and there doesn’t appear to be any distance-based processing.
This material wasn’t created by me, so please don’t ask me what I did.
Hello there @FairboyMarx!
From what I can see on your material setup, the opacity texture map is going straight to the opacity mask slot, meaning the other nodes are not affecting it’s result. The only parameter to play around here would be the mask’s clip value, which you can find by select M_TSPine in the graph, going into Details > Advanced:
Default value should be 0.3333, I would suggest testing around a range from 0.1 to 0.2, then test if the foliage still dissapears. Besides that, there’s no more possible cultrips to check here, the material is not using any other node that could trigger a culling effect (like DepthFade, PixelDepth, DistanceCullFade, etc).
And looking at your screenshots, the result looks a bit more like an aggressive LOD taking over the asset. The leafs are not fading, they are losing all their geo, only the branches are left. I suggest checking your static mesh LOD settings, by opening the asset, going into Details > LOD settings, and check how many levels are applied on it. Re-adjust them, so they don’t cull the leaves at that distance:
Also, if you are placing these using the foliage tool, said tool has its own culling parameters as well. When you select the foliage type, check your values for Cull Distance, and adjust them accordingly:
1 Like