Need normalized distance between geometry bounds I would like to get a value between 0 and 1 of the distance between the mesh bounds in an axis (Y), depending on the X value. not sure this is crystal clear but the screenshot says more than words :)



the result should look like this (roughly) and be the same moving, rotating or scaling the object.


And I want that to be done with math and vector nodes in a shader, no script.
The closest thing I found is:



The diagonal highlights can be edited in the UV map