Expand description
Constructors§
Source§new PipelineBuildingSSAO(renderer: Renderer): PipelineBuildingSSAO
new PipelineBuildingSSAO(renderer: Renderer): PipelineBuildingSSAO
Constructor for PipelineBuildingSSAO
Properties§
protected _ camera Bind Group: GPUBindGroupCamera bind group
protected _ camera Bind Group Layout: GPUBindGroupLayoutCamera bind group layout
protected _ c Map Texture: GPUTextureColor map texture
protected _ color Buffer: GPUBufferColor uniform buffer
Shared color buffer for the first pass.
protected _ depth Buffer Pass 01: GPURenderPassDepthStencilAttachmentDepth buffer for the first pass.
protected _ frag Module 01: GPUShaderModuleFragment shader module for the first pass.
protected _ frag Module 02: GPUShaderModuleFragment shader module for the second pass.
protected _ highlight Color Buffer: GPUBufferHighlight color uniform buffer
protected _ highlighted Buffer: GPUBufferHighlighted buffer for vertex data.
protected _ indices Buffer: GPUBufferIndices buffer for vertex data.
protected _ mview Buffer: GPUBufferModelView matrix uniform buffer
protected _ normal Buffer: GPUBufferNormal buffer for vertex data.
Shared normal buffer for the first pass.
protected _ opacity: GPUBufferOpacity uniform buffer
protected _ pipeline 01: GPURenderPipelineRender pipeline for the first pass.
protected _ pipeline 02: GPURenderPipelineRender pipeline for the second pass.
protected _ position Buffer: GPUBufferPosition buffer for vertex data.
protected _ projc Buffer: GPUBufferProjection matrix uniform buffer
protected _ renderer: RendererRenderer reference
protected _ render Info Bind Group: GPUBindGroupRender information bind group
protected _ render Info Bind Group Layout: GPUBindGroupLayoutRender information bind group layout
protected _ skipped Buffer: GPUBufferHighlighted buffer for vertex data.
protected _ textures Pass 02 Bind Group: GPUBindGroupBind group for colors.
protected _ textures Pass 02 Bind Group Layout: GPUBindGroupLayoutBind group layout for textures in the second pass.
protected _ thematic Buffer: GPUBufferThematic buffer for vertex data.
protected _ use Color Map: GPUBufferUse color map uniform buffer
protected _ use Highlight: GPUBufferUse highlight uniform buffer
protected _ vert Module 01: GPUShaderModuleVertex shader module for the first pass.
protected _ vert Module 02: GPUShaderModuleVertex shader module for the second pass.
Methods§
Source§build(mesh: Triangles3DLayer): void
build(mesh: Triangles3DLayer): void
Builds the pipeline with the provided mesh data.
Creates the shared textures for the pipeline.
Source§createVertexBuffers(mesh: Triangles3DLayer): void
createVertexBuffers(mesh: Triangles3DLayer): void
Creates the vertex buffers for the mesh data.
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(mesh: Triangles3DLayer): void
updateVertexBuffers(mesh: Triangles3DLayer): void
Updates the vertex buffers with the provided mesh data.
PipelineBuildingSSAO is a rendering pipeline for drawing 3D buildings with SSAO (Screen Space Ambient Occlusion). It uses WebGPU to render the buildings in two passes: one for normal and color maps, and another for SSAO computation.