I’m struggling to understand what exactly Screen Position node outputs in Unity’s Shader Graph.
I’m using the screen position with scene depth to calculate the distance between two objects.
Every tutoriel I saw (like Brackey’s forcefield one) is using the alpha channel of the Screen Position output.
I read that the Screen Position node outputs the mesh vertex screen positions.
- does it means the 2D position on the screen projection?
- or the vertex 3D position from the eye space?
- and more importantly, what is exactly the apha channel of this output? (I have the feeling this is related to the “clip space W component” in the documentation)