OpaquePass
Introduction
vtkWebGPUOpaquePass renders the opaque geometry of a renderer into an offscreen color and depth texture, which the translucent and volume passes then composite onto.
Methods
createRenderEncoder
Create the render encoder the opaque actors are drawn with.
extend
Method used to decorate a given object (publicAPI+model) with vtkWebGPUOpaquePass 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 | IWebGPUOpaquePassInitialValues | No | (default: {}) |
getColorTexture
Get the rgba16float color texture this pass renders into, or null before the first traversal.
getColorTextureView
Get the view of the color texture this pass renders into.
getDepthTexture
Get the depth32float texture this pass renders into, or null before the first traversal.
getDepthTextureView
Get the view of the depth texture this pass renders into.
getResolveColorTexture
Get the color resolve target when multisampling is enabled.
newInstance
Method used to create a new instance of vtkWebGPUOpaquePass.
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | IWebGPUOpaquePassInitialValues | No | for pre-setting some of its content |
releaseGraphicsResources
Drop the render encoder and both textures so that they are recreated on the next traversal.
traverse
Render the opaque actors of a renderer into an offscreen color and depth texture, allocating or resizing them to the canvas first.
| Argument | Type | Required | Description |
|---|---|---|---|
renNode | vtkWebGPURenderer | Yes | The renderer view node to traverse. |
viewNode | vtkWebGPURenderWindow | Yes | The render window view node. |