File: ViewportDepthTextureNode.md | Updated: 11/15/2025
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.
Constructs a new viewport depth texture node.
uvNode | The uv node. Default is screenUV.
---|---
levelNode | The level node. Default is null.
Overwritten so the method always returns the unique shared depth texture.
Overrides: ViewportTextureNode#getTextureForReference
Returns: The shared depth texture.