ViewportDepthTextureNode

Last modified: Jun 30, 2024

Represents the depth of the current viewport as a texture. This module can be used in combination with viewport texture to achieve effects that require depth evaluation.

Constructor

new ViewportDepthTextureNode(uvNode?, levelNode?, depthTexture?)
ParameterTypeDefault Value
uvNode?NodescreenUV
levelNode?null | Nodenull
depthTexture?null | DepthTexturenull

Constructs a new viewport depth texture node.

AccessorType

Extends

ViewportTextureNode

viewportDepthTexture

TSL function for a viewport depth texture node.

ParameterTypeDefault Value
uvNode?Node
levelNode?Node
depthTexture?DepthTexture

Returns

ViewportDepthTextureNode