Outline shader of connected objects in projected context?

Hello :slight_smile:
I found exactly same question I have now in stackoverflow

however the solution has not good performance

I tired boundingbox too
the problem is boundingbox can’t find the intersection of objects on the screen space.
I would like to find objects looks overlayed on the screen space not in 3d space.

do you have any better ideas?