Skip to main content

Module pick

Module pick 

Source
Expand description

Pick buffer rendering for element selection.

The pick buffer is an offscreen framebuffer where each element is rendered with a unique color encoding its ID. When the user clicks, we read the pixel at that position and decode the color to find what was clicked.

Structs§

MeshPickUniforms
GPU uniforms for mesh pick rendering (flat 24-bit global index encoding).
PickResult
Result of a pick operation.
PickUniforms
Encodes a structure ID and element ID into RGB pick color. GPU uniforms for pick rendering (flat 24-bit global index encoding).
TubePickUniforms
GPU uniforms for tube-based curve network pick rendering (flat 24-bit global index encoding).

Enums§

PickElementType
Element type for pick results.

Functions§

color_to_index
Decodes a pick color back to an index.
index_to_color
Encodes an index as a pick color.