I am rendering a point cloud using vertex buffers in a mesh.
Mesh m = new Mesh(); m.setMode(Mode.Points); m.setBuffer(VertexBuffer.Type.Position, 3, pointCoordinates3d); m.setBuffer(VertexBuffer.Type.Color, 4, colorsRGBA); m.setBuffer(VertexBuffer.Type.Size, 1, sizes);
pointCoordinate3d contains the coordinates of the points, colorsRGBA the colors of points, and sizes the sizes of the points. I would expect that higher values in sizes would lead to the points being rendered larger, which isn’t the case.
Now a few questions:
- Is what I described what the size vertex buffer is supposed to do?
- If no, what is it supposed to do?
- If yes, what could be the cause of the size buffer apparently being ignored?
Thank you and best regards