Module re_renderer::renderer::point_cloud
source · Expand description
Point renderer for efficient rendering of point clouds.
§How it works:
Points are rendered as quads and stenciled out by a fragment shader. Quad spanning happens in the vertex shader, uploaded are only the data for the actual points (no vertex buffer!).
Like with the super::lines::LineRenderer
, we’re rendering as all quads in a single triangle list draw call.
(Rationale for this can be found in the [lines.rs
]’s documentation)
For WebGL compatibility, data is uploaded as textures. Color is stored in a separate srgb texture, meaning that srgb->linear conversion happens on texture load.
Modules§
Structs§
- Internal, ready to draw representation of
PointCloudBatchInfo
- Property flags for a point batch
- Data that is valid for a batch of point cloud points.
- A point cloud drawing operation. Expected to be recreated every frame.