Skip to content

Skybox ​

Introduction ​

The WebGPU backend view node for a vtkSkybox.

Methods ​

buildPass ​

Builds myself: resolve the renderer and render window and find the view node of the renderer's active camera.

ArgumentTypeRequiredDescription
prepassYes

ensureQuad ​

Create the full screen quad, its uniform buffer and its shader replacements, if they do not exist yet.

ArgumentTypeRequiredDescription
devicevtkWebGPUDeviceYes

extend ​

Method used to decorate a given object (publicAPI+model) with vtkWebGPUSkybox characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesIWebGPUSkyboxInitialValuesNo(default: {})

getCubeTexture ​

Get, or build and cache on the device, the cube map texture for the given vtkTexture.

ArgumentTypeRequiredDescription
devicevtkWebGPUDeviceYes
texturevtkTextureYes

getCubeTextureHash ​

The cache key of the cube map built from the six inputs of the given texture, or null when one of them is missing.

ArgumentTypeRequiredDescription
texturevtkTextureYes

getTexture ​

The first texture of the renderable, if any.

newInstance ​

Method used to create a new instance of vtkWebGPUSkybox.

ArgumentTypeRequiredDescription
initialValuesIWebGPUSkyboxInitialValuesNofor pre-setting some of its content

opaquePass ​

Renders myself: draw the full screen quad with the skybox shader for the renderable's format.

ArgumentTypeRequiredDescription
prepassYes

queryPass ​

ArgumentTypeRequiredDescription
prepassYes
renderPassvtkRenderPassYes

releaseGraphicsResources ​

Drop the quad, the uniform buffer and the cached texture views.

updateTexture ​

Bind the texture view matching the renderable's format to the quad. Returns false when no texture is ready to be drawn.

ArgumentTypeRequiredDescription
devicevtkWebGPUDeviceYes

updateUBO ​

Update and send the mapper uniform buffer holding the inverse projection matrix and the stabilized camera position.

ArgumentTypeRequiredDescription
devicevtkWebGPUDeviceYes