Hide part of lines behind a sphere, from a shader

Hi!
Here is an option with points: Way to hide Points if geometry is seen from backside? - #8 by prisoner849