blend grass with terrain

how to blend grass with terrain?
I’m trying to do this through camera rendering terrain that is rendering texture I need to take the color of the pixel under the grass on terrain and assign the color of that pixel to the grass. Pls help
It should look something like this