heightmaps to apply material?

hello. how do i use a height map to apply a material to my landscape? i have a few different maps for different materials but cant figure out how to add them.