Capítulo 513 de 859

Chapter 513: ViewportSharedTextureNode

Core Idea

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.

Reference Tables

Constructor

Signature
new ViewportSharedTextureNode( uvNode : Node, levelNode : Node )

Methods

MethodDescription
.getTextureForReference() : FramebufferTextureOverwritten so the method always returns the unique shared framebuffer texture.

Key Takeaways

  1. ViewportSharedTextureNode extends: EventDispatcher → Node → InputNode → UniformNode → TextureNode → ViewportTextureNode
  2. Key methods: getTextureForReference.

Connects To