How do I make grass match the base terrain? I have grass on my terrain.

The terrain is textured by a single Image texture which is simply dropped onto the terrain.
The grass is created using a hair particle system.
How do I make the grass take on the colour of the terrain below it? For example, where the terrain is white I'd like the grass to be white, where the terrain is green I'd like the grass to be green, etc.
Below is my terrain shader setup. As you see it's as simple as it gets.
Copy the shader you used for your terrain onto your grass, but use &quot;object&quot; texture mode instead
Final result:

Terrain shader:

Grass shader:

While you could choose to apply the terrain texture directly, I chose to multiply the original grass texture with the terrain texture. This way, the grass retained it's colour but would be lighter where the terrain is lighter and darker where the terrain is darker, as seen in the image above.
The best way to experiment is to make a plane and use your grass shader on the plane to check it matches up with your terrain. I had to tweak the texture coordinates quite a bit.
Before:

After: