OrderIndependentTranslucentPass
Methods
createCopyShader
Build the shader program that resolves the two accumulation buffers onto a screen-aligned quad.
| Argument | Type | Required | Description |
|---|---|---|---|
viewNode | vtkOpenGLRenderWindow | Yes | The render window view node. |
createFramebuffer
Allocate the offscreen framebuffer the translucent geometry accumulates into, along with its RGBA, R and depth attachments.
| Argument | Type | Required | Description |
|---|---|---|---|
viewNode | vtkOpenGLRenderWindow | Yes | The render window view node. |
createVBO
Build the vertex array object binding the quad vertex buffer to the copy shader.
| Argument | Type | Required | Description |
|---|---|---|---|
viewNode | vtkOpenGLRenderWindow | Yes | The render window view node. |
createVertexBuffer
Build the vertex buffer of the screen-aligned quad the resolved color is drawn to.
extend
Method used to decorate a given object (publicAPI+model) with vtkOpenGLOrderIndependentTranslucentPass 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 | IOrderIndependentTranslucentPassInitialValues | No | (default: {}) |
getFramebuffer
Get the framebuffer the translucent geometry accumulates into, or null before the first traversal.
getShaderReplacement
Get the shader replacement that turns a mapper's fragment output into the weighted-blended accumulation this pass resolves, or null when the context lacks the float color buffer support the pass needs.
newInstance
Method used to create a new instance of vtkOpenGLOrderIndependentTranslucentPass.
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | IOrderIndependentTranslucentPassInitialValues | No | for pre-setting some of its content |
releaseGraphicsResources
Release the framebuffer, its textures, the copy shader and its vertex array object.
| Argument | Type | Required | Description |
|---|---|---|---|
viewNode | vtkOpenGLRenderWindow | Yes | The render window view node. |
traverse
Render the translucent actors of a renderer with order-independent transparency, then resolve the accumulation buffers onto the current framebuffer. Falls back to plain alpha blending when the context has no float color buffer extension or a hardware selector is active.
| Argument | Type | Required | Description |
|---|---|---|---|
viewNode | vtkOpenGLRenderWindow | Yes | The render window view node. |
renNode | vtkViewNode | Yes | The renderer view node to traverse. |
forwardPass | vtkForwardPass | Yes | The forward pass driving this pass. |