Mapping and matching a patterned texture over distinct objects simulating that same pattern

Dear all, I hope the title makes sense. Please see attached image: the goal is to make the floor comprised not by a single plane but by several objects with slight Z offsets (not as exxagerated as in the image). I’d like the texture to cover those objects in a perfectly tilled manner. Any advice on making the texture mapping behave? Thank you.

Got it. You can “match mapping” from the texture already applied on the plane. I was confused because the viewport display doesnt show this correctly, but when rendering, everything is ok.