ViewportSharedTextureNode
Last modified: Jun 30, 2024ViewportTextureNode 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?, levelNode?)| Parameter | Type | Default Value |
|---|---|---|
| uvNode? | Node | screenUV |
| levelNode? | null | Node | null |
Constructs a new viewport shared texture node.
| Accessor | Type | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ▸get type | string | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Modifiers static | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Method | Type | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ▸getTextureForReference | () => FramebufferTexture | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Overwritten so the method always returns the unique shared framebuffer texture. Returns FramebufferTexture | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▸updateReference | () => this | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns this | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Extends
ViewportTextureNodeviewportSharedTexture
TSL function for creating a shared viewport texture node.
| Parameter | Type | Default Value |
|---|---|---|
| uvNode? | Node | — |
| levelNode? | Node | — |
Returns
ViewportSharedTextureNode