I would like to make a material that displays the line of sight vector using the RGB channels : for example, here, let's say i am looking from the camera, the line of sight vector would be : →E(X=0; Y=1; Z=0)
so the sphere should appear all green.
Also, i wanna precise that I don't want it to use the camera (the object) orientation but the viewport.
I think the vector transform node would help, i found this thread in which the material displayed the rotation of the object so i think it could help : Change color with object rotation