Fog centered on Vector3

Does anyone know a way to make a shader that fog things off based on the distance to a Vector3? like Vector3.zero?
I’m really stuck with my project and need a solution for this. I tried with a spot light centered on my player character but it doesn’t give the result i hope to achieve.

Thank you very much

I don’t know much about shader code, but it sounds to me that you want to write a script that gets the transform position of an object and then feed that position into a shader that renders fog based on a depth map.

The depth map will increase the fog closer to the object and fade out the fog further away from the object.

This is only how to approach it though, like said before, I do not know much about shader coding itself :). Try googling around looking for fog shaders (probably an image effect) and see if you can tweak around to get your needs.