How can I get the exact Z axis global value into my Material?

World position node would give you exact position of each pixel in the world.