Get Landscape height in material applied to a static mesh

Or, alternatively, have a duplicate of your landscape’s heigthmap as a texture, that you would sample in mesh’s material. Unlike rendering landscape height from top, it incurs less runtime performance hit, but consumes a bit of a memory and works only for fixed size landscapes.