World aligned texture on X axis only?

Hi guys, I’m making a road spline and am wondering if there’s a way to world align a texture only on the x axis, I guess what I really mean is either the U or V axis but I’m not sure which is which. What I’m looking to achieve in the end is to be able to stretch a section of the road mesh (in the X direction only) as part of the spline ,say on a long straight stretch without stretching the textures assigned to the mesh. I am also using road markings in my material so I don’t want to have world aligned tiling on the Y axis, I need it to use the mesh’s UV coordinates on the Y only, to keep the road markings in place. Can this even be done? Any help would be greatly appreciated.