Replace BoundingBoxUV with World Coords?

Found this neat material to do gradients that uses BoundingBoxBased UV to blend across a mesh. Is there a way I can replace that measurement world coordinates? or perhaps with parent bounding box (object made of several meshes)?

Managed to find a solution that works for me. Clamping it from zero helps it stop at the bottom, and the “whole height” parameter allows me to adjust the gradient up and down. I’m using it across buildings in a city and I can adjust how the gradient is applied to the whole city at once