Invert Alpha Blend?

Is there a way I can invert alpha blend and use that information on the diffuse?

I would like to make something only visible where it touches geometry and fade out from there.

I tried “1-x” and stuff, but I’m clueless.