📄 threejs/Core/Nodes/ViewportSharedTextureNode

File: ViewportSharedTextureNode.md | Updated: 11/15/2025


title: ViewportSharedTextureNode category: Core layout: docs

ViewportSharedTextureNode

ViewportTextureNode creates an internal texture for each node instance. This module shares a texture across all instances of ViewportSharedTextureNode. It should be the first choice when using data of the default/screen framebuffer for performance reasons.

Constructor

new ViewportSharedTextureNode( uvNode : Node, levelNode : Node )

Constructs a new viewport shared texture node.

uvNode | The uv node. Default is screenUV.
---|---
levelNode | The level node. Default is null.

Methods

.getTextureForReference() : FramebufferTexture

Overwritten so the method always returns the unique shared framebuffer texture.

Overrides: ViewportTextureNode#getTextureForReference

Returns: The shared framebuffer texture.

Source

src/nodes/display/ViewportSharedTextureNode.js