The material node is called World Position:
You will need some clamps and a bit of math to make it look right.