I tried asking in the answerhub but I wasn’t very lucky so I would like to start this thread here…
I have group of meshes painted on a plane with the foliage tool. The meshes are using the culling option inside the foliage type and it seems to work just fine. At distance they don’t show up. I have tried culling them with the Per Instance Fade amount node or with classical culling techniques (distance cull fade node or camera distance divided by world position, and so forth)- The problem comes when I look into the shader complexity mode and it’s giving me terrible results when there is actually no meshes to render, no a single foliage vertex visible and yet it looks like this. Does someone know if this is a real issue or just a visualization one? I tried profiling the overdraw or material complexity itself but all of that is under control, really.
It looks like this is an overdraw issue, as the texture data is effectively masked out from your plane, leading to more overdraw if you’re using a masked material. What I do instead is utilize the PerInstanceFadeAmount info as a value to displace the vertices down below the ground, forcing the quads out of site and also giving off kind of a neat “growth” effect for the distance fade.
have you changed the global LOD distances for staticmeshes and/or foliage? (with r.foliage.LODdistancescale, or with the scalability settings)
I’ve found that if you change these, only the Lit viewport works accordingly