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?)| Parameter | Type | Default Value |
|---|---|---|
| uvNode? | Node | screenUV |
| levelNode? | null | Node | null |
| depthTexture? | null | DepthTexture | null |
Constructs a new viewport depth texture node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Extends
ViewportTextureNodeTSL function for a viewport depth texture node.
| Parameter | Type | Default Value |
|---|---|---|
| uvNode? | Node | — |
| levelNode? | Node | — |
| depthTexture? | DepthTexture | — |
Returns
ViewportDepthTextureNode