Shader Reference
View Direction in Image Effect Shader
World space camera position:
so, the center of near clip plane in world space and clip space should be
transform it into NDC by dividing its own w component. NDC should be a cubic space where x,y,z should all be in range from -1 to 1.
So, in NDC, the view direction should be
the view direction in post processing should be computed like this