I have built my first visual shader, a lidar effect. Now I would like to add extra lidar dots at the edges of objects. I figure that I need to code a custom visual shader node, that return 1 around the edges and 0 elsewere. I dont know how to do that. Most examples I find use a quadmesh as a lens to add the effect, if I understand them correctly, and I cant use that. I dont want a wireframe, just the actual edges of the object.
Any help appreciated. Are my assumptions correct? How do I code this?