highlighting intersections I'm not sure the best way to explain this, but I want a material to mix into an emission shader along the edge where it intersects with another object. This video is a good example:link

edit: I want to do be able to do this in realtime (eevee), thought I'd add it here rather than just having it in the tags.

edit:  

edit: I also want to be able to achieve this in eevee with this same method. this is done in cycles:



and this is eevee:
I just followed the method in that link:


you can use add shader in the end but results were not good so I used a mix of 50/50
you can use a light path node with out put of is camera ray to get rid of shadows.





works in eevee too but you should enable ambient occlusion + make the shader show transparency + adjust the color ramp. if adjusting color ramp is hard add a math node with power before it. 



eevee setup