Capítulo 444 de 859
A specialized context node designed to override specific target nodes within a node sub-graph or flow. This allows replacing specific inputs (e.g., normal and position vectors) dynamically during compilation for a specific flow node, without having to reconstruct or duplicate the source nodes.
// Method chaining example:
node.overrideNode( positionLocal, () => positionLocal.add( vec3( 1, 0, 0 ) ) );
// Context assignment example:
material.contextNode = overrideNode( positionLocal, () => positionLocal.add( vec3( 1, 0, 0 ) ) );
Constructor
| Signature |
|---|
| `new OverrideContextNode( overrideNodes : Map.<Node, function()>, flowNode : Node |
Properties
| Property | Description |
|---|---|
.isOverrideContextNode : boolean (readonly) | This flag can be used for type testing. |
.type : string (readonly) | Returns the type of the node. |
Methods
| Method | Description |
|---|---|
.getFlowContextData() : Object | Gathers the context data from all parent context nodes by traversing the hierarchy, merging the overrideNodes maps from all encountered OverrideContextNode instances. |