Another option is local transparency - obstacles between you and the target get gradually transparent. Here is a demo of a TSL texture that “dissolves” too close objects (or too far objects)
https://x.com/PavelBoytchev/status/2027845647584383281
And in this discussion there is a non-TSL variant: