Hi all,
I am trying to accomplish something in a post process material and cant figure out how to do i, hopefully someone can help me
In a post process material, i am trying to get the the world space direction vector of a light source.
I can feed the vector in ,using Material Parameter Collection but how do it get the world direction compared to the screen to basically get left or right from the camera viewpoint ?
I tried the node Transform to warp the worldspace into viewspace or cameraspace but honestly it dosent seem to do anything.
Another way of doing it would be to rotate the world space vector to align with camera and use the X axis to get the left or right but i cant figure out how to do it in a post process.
Anyone can help / got a better idea how to achieve this ?