Continuous material across objects

Well, actually this only MOSTLY works. It works if the faces of the object are directly facing a world space axis. So that the normals of the face are all either 1 or 0 for each axis. If it’s rotated anywhere between those values, it no longer works as desired. So I’ll continue working on a solution for this. But if anyone has already done something like this and can provide the premade maths solution, that would be amazing!