Sprite silhouette only behind other sprites?

So i’m working on a game, obviously.

You can see it here Reddit - Dive into anything

And as you can see in the video, it’s hard to tell what you’re doing when the player goes behind something.

So the question is, does anyone know of a way to achieve a silhouette effect with a sprite only when it’s behind an object?

The closest I’ve gotten is a silhouette on the player when it overlaps an object, whether or not it’s behind it.

Any help would be greatly appreciated!

@migueltuliompg So is your question: “How do I know if the player is hidden behind another object?” (because once you know that you can just draw the silhouette sprite)

Exactly!

All that I found was renderer.isVisible, but that returns true whether or not the renderer is behind an object.
Or Physics.Raycast, but that only works for colliders.