Update:
Perhaps I am going about this wrong. What I am ultimately trying to do is use these depth values to select a pixel of a volume texture like this where each layer of the texture is a different image. I then want to display this on my HUD, is it possible to achieve all of this within the material instead of trying to create a height map.