I'm trying to make a shader which has a procedural texture mapped along a vector between the camera view and the objects. Imagine the pink arrow as the vector in the picture below.
I was able to make a shader with a similar effect (pictured below), however, the vector is parallel to the camera view rather than pointing toward it. Because of this, the shader doesn't create the desired result in perspective mode.
(the gradient texture is just a placeholder)
My understanding of shaders is poor but I'll clarify my question as best I can if necessary.
