[2.8rc1] Color based on z value not working properly?

I’m trying to figure out why this shader setup works in 2.79 (upper image) but not in 2.8 RC1 (lower). In 2.8, the material preview is correct only, while in the viewports for both evee and cycles the gradient is not shown.

Solved: Modifiers need to be applied in 2.8RC1 to make it work. Is that intended?

Dunno. How about object coordinates, actual object or linking to an empty?
But I’ve noticed that I can’t do slope shading on microdisplaced surfaces. When I thought about it I came to the conclusion that “yeah, makes sense I guess”, but I can’t remember my line of thought.