Set a texture with W.Position Offset on x,y,z axis

Hi guys, I need to set a texture with World Position Offset (or another node) on some mesh (for example cubes), and the result that I try to achieve is that once the texture is set on the meshes and they are near to each other, the texture continues through them without interruptions. Another thing, I need to set it not just with a flat texture, but with a 3d one, so using Normal input. May u help me?

Thank u for your support