Rendering Outline on Collision?

Hello all,

I am creating a top-down stealth game where making a loud noise triggers a visible sound wave. I want the sound wave to be an invisible sphere the expands from the sound’s origin point and renders a lightly-colored line on wherever it makes contact with the environment sort of like so:


(here’s a link in case the gif doesn’t play)

Does anyone know how would I do this in URP?

If you are okay with the outlines appearing on opaque geometry only you can very easily achieve this with a shader which reads the depth texture.
Look into water shaders which color the edge to the shore, it is exactly the same technique but on a different mesh.

Maybe this can help:

Is in spanish but he is making a shader that reads the depth from camera.