Expand description
Constructors§
Source§new PipelineTrianglePicking(renderer: Renderer): PipelineTrianglePicking
new PipelineTrianglePicking(renderer: Renderer): PipelineTrianglePicking
Constructor for PipelineTrianglePicking
Properties§
Methods§
Source§build(mesh: VectorLayer): void
build(mesh: VectorLayer): void
Builds the pipeline with the provided mesh data.
Source§createVertexBuffers(mesh: VectorLayer): void
createVertexBuffers(mesh: VectorLayer): void
Creates the vertex buffers for the pipeline.
Source§readPickedId(x: number, y: number): Promise<number>
readPickedId(x: number, y: number): Promise<number>
Reads the picked object ID from the picking texture.
Source§updateCameraUniforms(camera: Camera): void
updateCameraUniforms(camera: Camera): void
Updates the camera uniform buffers with the current camera state.
Source§updateColorUniforms(layer: Layer): void
updateColorUniforms(layer: Layer): void
Updates the color uniform buffers with the current layer state.
Source§updateVertexBuffers(layer: VectorLayer): void
updateVertexBuffers(layer: VectorLayer): void
Updates the vertex buffers with the provided mesh data.
PipelineTrianglePicking is a rendering pipeline for picking triangles in 2D space. It uses WebGPU to render triangles and allows for picking by encoding object IDs in vertex colors.