# How to render hidden lines of OutlinePass as dashed lines?

**URL:** <https://discourse.threejs.org/t/how-to-render-hidden-lines-of-outlinepass-as-dashed-lines/5028>\
**Category:** Questions\
**Tags:** post-processing\
**Created:** [November 21, 2018, 9:24am UTC](https://discourse.threejs.org/t/how-to-render-hidden-lines-of-outlinepass-as-dashed-lines/5028 "2018-11-21T09:24:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeanSure](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/seansure/32/7372_2.png) [@SeanSure](https://discourse.threejs.org/u/SeanSure)\
**Post date:** [November 21, 2018, 9:24am UTC](https://discourse.threejs.org/t/how-to-render-hidden-lines-of-outlinepass-as-dashed-lines/5028/1 "2018-11-21T09:24:00Z")

</div>

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.  
Website: [https://threejs.org/examples/?q=outline#webgl\_postprocessing\_outline](https://threejs.org/examples/?q=outline#webgl_postprocessing_outline)

---

<div class="post-metadata">

**Author:** ![SeanSure](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/seansure/32/7372_2.png) [@SeanSure](https://discourse.threejs.org/u/SeanSure)\
**Post date:** [November 21, 2018, 10:05am UTC](https://discourse.threejs.org/t/how-to-render-hidden-lines-of-outlinepass-as-dashed-lines/5028/4 "2018-11-21T10:05:39Z")

</div>

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.

![%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20181121180332](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/threejs/original/2X/2/2a79f3b508d5b3a3b2a3711ba817a53683884f23.png)
