Hello! Apologies if this isn’t the right place.
Yesterday I was looking at Scanner Sombre and wanted to try and implement the Lidar Scanner myself. I did my own research and found that most people or tutorials online use VFX Graph which is perfect for that, but i want to just do it in shader code if possible.
I have the idea of creating a post process that renders the depth of what i see in a flashlight “cone”. Storing that in a render texture and passing that on to a compute shader where i read that RT with the depth info and calculating the world pos of that pixel (Obviously later on id have some noise to choose the pixel and not do every single one…).
Once thats figured out i use Graphics.DrawMeshInstancedProcedural to draw a mesh of a quad at its position in a C# script.
I know im over complicating myself but I just want to do it in shader code. Before I start i’d want to hear if this is a good idea or im going in the wrong direction.
Any advice is helpful. Thanks!