decal blending under a surface

Hello, I am wondering how I can take a mesh deferred decal and have it blend under my grass surface. I’m assuming i need to use buffer to mask out the decal but i’m not sure how to pull this off. has anyone tried doing something like this?

attached is an image of an example.

thanks,
z