I want a color gradient for the wireframe based on viewing angle.
This is the fresnel effect applied to a torus. You can see the problem we are going to run into when trying to apply it to a wireframe. The gradient will be for every tiny strand instead of the overall structure.
The effect I want: imagine this being a wireframe except keep the colors in their same position:
Edit: One idea is to have the color based on object proximity so you can place an object near the wireframe and have distant geometry fade to another color, but would there be a way to use only one object? and have the angle of the object to the wireframe be where the gradient starts? In this case, ideally, the camera would be that object.