Can I control foliage parameters through a material?

I’m trying to seamlessly blend my grass mesh with my terrain over distance. I’d like to scale down my grass mesh over distance as well as increase the density since scaling down will open up lots of space between grass meshes. Is there a way I can control something like mesh density and scale for foliage (grass) through my material or does it/can it be done through blueprint and how?

I think this has to be done via blueprints or exposed variables. Materials are not allowed to change things to the mesh it is applied to. And the mesh is not allowed to do so with foilage settings. So the material is also not allowed to do so with foilage.
Another approach might be to add a second pair of grass foilage that will only appear once further away with LODs. The first LODs will just show nothing at all. Yet to do so you will need a second mesh asset because you cant import the same mesh asset twice in the foilage editor.

Can anyone help me?

Trought material the only ways I know is trought vertex animation, but that isn’t cheaper for foliage, it is used in particles and effect