I wanted to learn how to make shaders, so I did some research on how to do so and ended up using the Unity Shader Graph to make a force field shader. I'm quite happy with how my first shader turned out, and I enjoyed researching and creating it.
Here, I'm making the intersection with other objects visible by subtracting the screen position from the scene depth. There is an offset, so you can control the strength of the intersection. I also needed to clamp the result of the nodes because the alpha expects a number between 0 and 1.
Result
After making the intersection, I wanted there to be an outline for the rest of the force field. I did this by adding a Fresnel effect together with the intersection.
Result
The last part of my shader is a scrolling texture. I did this by using the tiling and offset node so the texture repeats itself and moves in a direction. I can control the speed and size of this by multiplying it with time and a variable I can change in the inspector.
Result