Objects-cross-section-projected-on-surface-Shader :D

I’m trying to create a shader that uses some sort of cross section of two objects on the surface of one of these objects. The thing I’m trying to create is a laser scanner that reveals the wireframe of the object it’s hitting.

I tried using a spherical gradient based on the cone, but since it’s using the origin of the cone and not it’s actual volume it doesn’t work like that (unfortunately)

I hope some of you have a better knowledge of nodes to help me create that shader/mask :smiley:

So I found this and this and it’s pretty much the perfect solution for me :slight_smile: https://blender.community/c/rightclickselect/30fbbc/