How can I paint foliage onto a static mesh using a mask?

I’d like to use a black and white texture that has been set up as a material and applied to my static mesh to control where foliage is painted on said static mesh. Is there any way to do this in UE?

For instance, I would like my foliage to only spawn on the black parts of the image below. if I change the UV texture scale in my material that is applied to my static mesh and my pattern has more repetition, I would like my foliage update accordingly.

OR

Instead of only spawning foliage on the black areas. Is it possible to spawn foliage across the entire static mesh and have all of the foliage that is overlapping with the black areas of the material to be a different color than the white areas?

1 Like

I also wanted to do something like this so can spawn the foliage on specific spots in case you find solution please reply to this