autk-map / PipelineBuildingSSAO
Class: PipelineBuildingSSAO
Defined in: pipeline-triangle-ssao.ts:19
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.
Extends
Constructors
Constructor
new PipelineBuildingSSAO(
renderer):PipelineBuildingSSAO
Defined in: pipeline-triangle-ssao.ts:126
Constructor for PipelineBuildingSSAO
Parameters
renderer
The renderer instance
Returns
PipelineBuildingSSAO
Overrides
Properties
_cameraBindGroup
protected_cameraBindGroup:GPUBindGroup
Defined in: pipeline.ts:39
Camera bind group
Inherited from
_cameraBindGroupLayout
protected_cameraBindGroupLayout:GPUBindGroupLayout
Defined in: pipeline.ts:44
Camera bind group layout
Inherited from
Pipeline._cameraBindGroupLayout
_cMapTexture
protected_cMapTexture:GPUTexture
Defined in: pipeline.ts:61
Color map texture
Inherited from
_colorBuffer
protected_colorBuffer:GPUBuffer
Defined in: pipeline.ts:51
Color uniform buffer
Inherited from
_colorsSharedBuffer
protected_colorsSharedBuffer:GPURenderPassColorAttachment
Defined in: pipeline-triangle-ssao.ts:96
Shared color buffer for the first pass.
_depthBufferPass01
protected_depthBufferPass01:GPURenderPassDepthStencilAttachment
Defined in: pipeline-triangle-ssao.ts:108
Depth buffer for the first pass.
_fragModule01
protected_fragModule01:GPUShaderModule
Defined in: pipeline-triangle-ssao.ts:66
Fragment shader module for the first pass.
_fragModule02
protected_fragModule02:GPUShaderModule
Defined in: pipeline-triangle-ssao.ts:78
Fragment shader module for the second pass.
_highlightColorBuffer
protected_highlightColorBuffer:GPUBuffer
Defined in: pipeline.ts:56
Highlight color uniform buffer
Inherited from
Pipeline._highlightColorBuffer
_highlightedBuffer
protected_highlightedBuffer:GPUBuffer
Defined in: pipeline-triangle-ssao.ts:42
Highlighted buffer for vertex data.
_indicesBuffer
protected_indicesBuffer:GPUBuffer
Defined in: pipeline-triangle-ssao.ts:54
Indices buffer for vertex data.
_mviewBuffer
protected_mviewBuffer:GPUBuffer
Defined in: pipeline.ts:27
ModelView matrix uniform buffer
Inherited from
_normalBuffer
protected_normalBuffer:GPUBuffer
Defined in: pipeline-triangle-ssao.ts:30
Normal buffer for vertex data.
_normalsSharedBuffer
protected_normalsSharedBuffer:GPURenderPassColorAttachment
Defined in: pipeline-triangle-ssao.ts:102
Shared normal buffer for the first pass.
_opacity
protected_opacity:GPUBuffer
Defined in: pipeline.ts:79
Opacity uniform buffer
Inherited from
_pipeline01
protected_pipeline01:GPURenderPipeline
Defined in: pipeline-triangle-ssao.ts:84
Render pipeline for the first pass.
_pipeline02
protected_pipeline02:GPURenderPipeline
Defined in: pipeline-triangle-ssao.ts:90
Render pipeline for the second pass.
_positionBuffer
protected_positionBuffer:GPUBuffer
Defined in: pipeline-triangle-ssao.ts:24
Position buffer for vertex data.
_projcBuffer
protected_projcBuffer:GPUBuffer
Defined in: pipeline.ts:32
Projection matrix uniform buffer
Inherited from
_renderer
protected_renderer:Renderer
Defined in: pipeline.ts:21
Renderer reference
Inherited from
_renderInfoBindGroup
protected_renderInfoBindGroup:GPUBindGroup
Defined in: pipeline.ts:87
Render information bind group
Inherited from
_renderInfoBindGroupLayout
protected_renderInfoBindGroupLayout:GPUBindGroupLayout
Defined in: pipeline.ts:92
Render information bind group layout
Inherited from
Pipeline._renderInfoBindGroupLayout
_skippedBuffer
protected_skippedBuffer:GPUBuffer
Defined in: pipeline-triangle-ssao.ts:48
Highlighted buffer for vertex data.
_texturesPass02BindGroup
protected_texturesPass02BindGroup:GPUBindGroup
Defined in: pipeline-triangle-ssao.ts:114
Bind group for colors.
_texturesPass02BindGroupLayout
protected_texturesPass02BindGroupLayout:GPUBindGroupLayout
Defined in: pipeline-triangle-ssao.ts:120
Bind group layout for textures in the second pass.
_thematicBuffer
protected_thematicBuffer:GPUBuffer
Defined in: pipeline-triangle-ssao.ts:36
Thematic buffer for vertex data.
_useColorMap
protected_useColorMap:GPUBuffer
Defined in: pipeline.ts:69
Use color map uniform buffer
Inherited from
_useHighlight
protected_useHighlight:GPUBuffer
Defined in: pipeline.ts:74
Use highlight uniform buffer
Inherited from
_vertModule01
protected_vertModule01:GPUShaderModule
Defined in: pipeline-triangle-ssao.ts:60
Vertex shader module for the first pass.
_vertModule02
protected_vertModule02:GPUShaderModule
Defined in: pipeline-triangle-ssao.ts:72
Vertex shader module for the second pass.
Methods
build()
build(
mesh):void
Defined in: pipeline-triangle-ssao.ts:134
Builds the pipeline with the provided mesh data.
Parameters
mesh
The mesh data containing positions, normals, thematic, and indices
Returns
void
Overrides
createCameraUniformBindGroup()
createCameraUniformBindGroup():
void
Defined in: pipeline.ts:110
Creates the camera uniform bind group.
Returns
void
Inherited from
Pipeline.createCameraUniformBindGroup
createColorUniformBindGroup()
createColorUniformBindGroup():
void
Defined in: pipeline.ts:170
Creates the color uniform bind group.
Returns
void
Inherited from
Pipeline.createColorUniformBindGroup
createDepthBufferPass01()
createDepthBufferPass01():
void
Defined in: pipeline-triangle-ssao.ts:289
Creates the depth buffer for the first pass.
Returns
void
createPipeline01()
createPipeline01():
void
Defined in: pipeline-triangle-ssao.ts:359
Creates the first render pipeline for the SSAO pass.
Returns
void
createPipeline02()
createPipeline02():
void
Defined in: pipeline-triangle-ssao.ts:462
Creates the second render pipeline for the SSAO pass.
Returns
void
createShaders()
createShaders():
void
Defined in: pipeline-triangle-ssao.ts:155
Creates the vertex and fragment shaders for the pipeline.
Returns
void
createSharedTextures()
createSharedTextures():
void
Defined in: pipeline-triangle-ssao.ts:251
Creates the shared textures for the pipeline.
Returns
void
createTexturesBindGroupPass02()
createTexturesBindGroupPass02():
void
Defined in: pipeline-triangle-ssao.ts:308
Returns
void
createVertexBuffers()
createVertexBuffers(
mesh):void
Defined in: pipeline-triangle-ssao.ts:189
Creates the vertex buffers for the mesh data.
Parameters
mesh
The mesh data containing positions, normals, thematic, and indices
Returns
void
Overrides
pass01()
pass01(
camera):void
Defined in: pipeline-triangle-ssao.ts:531
Renders the first pass of the SSAO pipeline.
Parameters
camera
The camera instance
Returns
void
pass02()
pass02():
void
Defined in: pipeline-triangle-ssao.ts:572
Renders the second pass of the SSAO pipeline.
Returns
void
renderPass()
renderPass(
camera):void
Defined in: pipeline-triangle-ssao.ts:600
Creates the shaders for the pipeline.
Parameters
camera
Returns
void
Overrides
updateCameraUniforms()
updateCameraUniforms(
camera):void
Defined in: pipeline.ts:157
Updates the camera uniform buffers with the current camera state.
Parameters
camera
The camera instance
Returns
void
Inherited from
updateColorUniforms()
updateColorUniforms(
layer):void
Defined in: pipeline.ts:295
Updates the color uniform buffers with the current layer state.
Parameters
layer
The layer instance
Returns
void
Inherited from
updateVertexBuffers()
updateVertexBuffers(
mesh):void
Defined in: pipeline-triangle-ssao.ts:239
Updates the vertex buffers with the provided mesh data.
Parameters
mesh
The mesh data containing positions, normals, thematic, and indices
Returns
void