Just send the appropriate texture coordinate per-vertex. Assuming your heightfield is x-z aligned (height in y direction), and you want a planar mapping looking from +y, your texcoords are just going to be your x and z coordintes, possibly normalized from 0.0 to 1.0