Object space not working with foliage


I was recently texturing a rock using object space node, which is the best way to go about texturing rocks and these organic stuff, but as soon as I started to scatter some rock on the ground using foliage painter I realized the object space isn’t working and therefore different texture density on each individual rock painted with different scales.
That’d be cool if you take a look into it so we don’t have to place every single rock manually. And if additional info is required let me know.