Class PipelineTriangleBorder

Source
Expand description

PipelineBorderFlat is a rendering pipeline for drawing flat borders of triangles in 2D space. It uses WebGPU to render lines based on the provided border data.

Constructors§

Source§

new PipelineTriangleBorder(renderer: Renderer): PipelineTriangleBorder

Constructor for PipelineBorderFlat

Properties§

Source§

protected _borderIndicesBuffer: GPUBuffer

Buffer for border indices.

Source§

protected _cameraBindGroup: GPUBindGroup

Camera bind group

Source§

protected _cameraBindGroupLayout: GPUBindGroupLayout

Camera bind group layout

Source§

protected _cMapTexture: GPUTexture

Color map texture

Source§

protected _colorBuffer: GPUBuffer

Color uniform buffer

Source§

protected _fragModule: GPUShaderModule

Fragment shader module.

Source§

protected _highlightColorBuffer: GPUBuffer

Highlight color uniform buffer

Source§

protected _mviewBuffer: GPUBuffer

ModelView matrix uniform buffer

Source§

protected _opacity: GPUBuffer

Opacity uniform buffer

Source§

protected _pipeline: GPURenderPipeline

Render pipeline for drawing borders.

Source§

protected _positionBuffer: GPUBuffer

Position buffer for vertex data.

Source§

protected _projcBuffer: GPUBuffer

Projection matrix uniform buffer

Source§

protected _renderer: Renderer

Renderer reference

Source§

protected _renderInfoBindGroup: GPUBindGroup

Render information bind group

Source§

protected _renderInfoBindGroupLayout: GPUBindGroupLayout

Render information bind group layout

Source§

protected _skippedBuffer: GPUBuffer

Buffer for skipped data.

Source§

protected _useColorMap: GPUBuffer

Use color map uniform buffer

Source§

protected _useHighlight: GPUBuffer

Use highlight uniform buffer

Source§

protected _vertModule: GPUShaderModule

Vertex shader module.

Methods§

Source§

build(borders: Triangles2DLayer): void

Builds the pipeline with the provided border data.

Source§

createCameraUniformBindGroup(): void

Creates the camera uniform bind group.

Source§

createColorUniformBindGroup(): void

Creates the color uniform bind group.

Source§

createPipeline(): void

Creates the render pipeline for drawing borders.

Source§

createShaders(): void

Creates the vertex and fragment shaders for the pipeline.

Source§

createVertexBuffers(borders: Triangles2DLayer): void

Creates the vertex buffers for the pipeline.

Source§

renderPass(camera: Camera): void

Renders the border flat pipeline.

Source§

updateCameraUniforms(camera: Camera): void

Updates the camera uniform buffers with the current camera state.

Source§

updateColorUniforms(layer: Layer): void

Updates the color uniform buffers with the current layer state.

Source§

updateVertexBuffers(borders: Triangles2DLayer): void

Updates the vertex buffers with the provided border data.