This is a short tutorial on setting up and using vectors from both the camera vantage point and that of Lighting and other useful techniques.
https://dev.epicgames.com/community/learning/tutorials/OD2l/leveraging-directional-vectors-for-comic-shaders-in-unreal-engine