Glyph3DMapper
Introduction
The WebGPU view node of vtkGlyph3DMapper. It draws the glyph source once per glyph as instances, reading the per instance transforms from a storage buffer.
Methods
buildPass
Update the renderable, refill the glyph storage buffer and rebuild the cell array mappers of the glyph source.
| Argument | Type | Required | Description |
|---|---|---|---|
prepass | Yes |
caExtend
Method used to decorate a given object (publicAPI+model) with vtkWebGPUGlyph3DCellArrayMapper characteristics.
| Argument | Type | Required | Description |
|---|---|---|---|
publicAPI | Yes | object on which methods will be bounds (public) | |
model | Yes | object on which data structure will be bounds (protected) | |
initialValues | IWebGPUCellArrayMapperInitialValues | No | (default: {}) |
createCellArrayMapper
Create a glyph cell array mapper sharing the storage buffer and the renderable of this mapper.
extend
Method used to decorate a given object (publicAPI+model) with vtkWebGPUGlyph3DMapper characteristics.
| Argument | Type | Required | Description |
|---|---|---|---|
publicAPI | Yes | object on which methods will be bounds (public) | |
model | Yes | object on which data structure will be bounds (protected) | |
initialValues | IWebGPUGlyph3DMapperInitialValues | No | (default: {}) |
newInstance
Method used to create a new instance of vtkWebGPUGlyph3DMapper.
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | IWebGPUGlyph3DMapperInitialValues | No | for pre-setting some of its content |
setGlyphInstances
Set the number of glyph instances to draw.
| Argument | Type | Required | Description |
|---|---|---|---|
val | Number | Yes |
updateSSBO
Fill the storage buffer with the per instance matrix, normal matrix and color of every glyph, and send it when the renderable rebuilt its arrays.