Outline effect for far edges of transparent object?

Hey so all of the methods I have seen for getting outline effects whether they are using a post-process material or cel mapping or whatever only show the edges between the camera and the object. Does anyone have any suggestions for showing the far edges? I’m trying to show a cube (and other solids) where the near edges are solid (easy) but the back ones are dotted (see picture) any help appreciated!

https://preview.redd.it/mietbwqgfy651.png?width=1000

Tom loomans tutorials do not? You have to purpously cull inner triangles to get the opposite result…

search and look to his post process stuff.

Thank you for the suggestion. I am new to unreal four and didn’t know his tutorial could be adapted in that way. I will definitely check it out.