c# – How to make a point cloud from particles?

youtu.be/w7Mee0fhpg8?feature=shared

I want to make the same thing, but in Unity. And with the same good performance as there are hundreds of thousands of particles.

I can create a position texture where each pixel will contain a point position in its channels (RGB=XYZ), but how can this position be applied to each individual particle?

So far, I do not really know how to implement this, will I need to write some kind of shader or can it be done somehow only through the particle system and C# code or else?

Read more here: Source link