I am trying to display a point cloud using WebGL.
Drawing a WebGL.entity per point is too slow, I have more than 300000 points.
So my idea was to create one mesh containing a fixed number of points (for example 307200) with colors and positions at 0 and the point index as attribute.
And then pass an array of positions and an array of colors as uniforms to update the points based on the index.
The problem is, in the current implementation of WebGL, it is not possible to pass arrays as uniforms or create floating point textures from arrays.
From what I understand this would require to modify the compiler. But I think it would be a really useful feature.
Do you have other ideas?