How to render hidden lines of OutlinePass as dashed lines?

Is there any way to set hidden outline to dashed line? I can not set dashed line by caculate distance from position in outlinePass.js’s shader.

I’m sorry I didn’t make myself clear. In the picture below I want to render the hidden line to dashed line. Is it feasible? Thank you very much for your help.