Chapter 448: PassMultipleTextureNode
Core Idea
An extension of PassTextureNode which allows to manage more than one internal texture. Relevant for the getPreviousTexture() related API.
Key Concepts
- isPassMultipleTextureNode : boolean (readonly): This flag can be used for type testing.
- previousTexture : boolean: Whether previous frame data should be used or not.
- textureName : string: The output texture name.
Reference Tables
Constructor
| Signature |
|---|
new PassMultipleTextureNode( passNode : PassNode, textureName : string, previousTexture : boolean ) |
Properties
| Property | Description |
|---|
.isPassMultipleTextureNode : boolean (readonly) | This flag can be used for type testing. |
.previousTexture : boolean | Whether previous frame data should be used or not. |
.textureName : string | The output texture name. |
Methods
| Method | Description |
|---|
.updateTexture() | Updates the texture reference of this node. |
Key Takeaways
- PassMultipleTextureNode extends: EventDispatcher → Node → InputNode → UniformNode → TextureNode → PassTextureNode
- Most relevant properties: isPassMultipleTextureNode, previousTexture, textureName.
- Key methods: updateTexture.
Connects To
- EventDispatcher: parent class
- Node: parent class
- InputNode: parent class
- UniformNode: parent class
- TextureNode: parent class
- PassTextureNode: parent class
- Source: src/nodes/display/PassNode.js