How can we change textures on a material based the Z position of the camera?

So I wanted to make a skybox that fades into different textures based on the height of the player. Anyone know how I can set this up in materials?