As shown in the image below I'm trying to find the points in which a line in the world space intersect a sprite. The idea was to get the corresponding values inside a shader to play around with pixel visibility but it seems that I cannot wrap my head around the problem in the correct way. What would be the best approach to achieve the result?
Edit: To clarify, what I'm trying to do is rendering a stickyman on a line, hiding what lies below that line. See picture below