Need help with foliage application

I know you can apply grass based on what material is showing on the terrain, but I don’t know how. I have searched for about two hours how trying different resources, documentation, and tutorials, but have found nothing. Does anyone have a link or some kind of resource to help me learn this trick?