i m not sure of what you want to achieve with that , with more infos i could help more, but what you can do is create a local space gradient, and use it like UV (as uv are gradient from 0-1 ) did this help ?