Need help with sampling texture in runtime

Does anyone know of a way to have a mesh spawn on other mesh based on the color?

I’m currently trying to create a infinite procedural generated world, and I wanted to create grass, in certain places, that matched the color of the ground material. I am using an auto material for the ground mesh.

I believe that runtime virtual textures won’t work because I don’t use a landscape and I don’t know of a alternative to Landscape Grass Output that would work with meshes. Also, the pcg graph Surface Sampler has Color properties but it is constantly showing a output of 1. So I don’t know if I’m doing something wrong of if it just doesn’t work like that.

Thanks in advance