Get Landscape height in material applied to a static mesh

How would you actually make so only those tree base verts get offseted and keep upper verts unaffected?