Inheritance: EventDispatcher → Node → OutputStructNode →
This node can be used setup a MRT context for rendering. A typical MRT setup for post-processing is shown below:
The MRT output is defined as a dictionary.
const mrtNode = mrt( {
output: output,
normal: normalView
} ) ;
Constructs a new output struct node.
outputNodes
The MRT outputs.
A dictionary storing the blend modes for each output.
This flag can be used for type testing.
Default is true.
A dictionary representing the MRT outputs. The key is the name of the output, the value the node which produces the output result.
Returns the output node for the given name.
name
The name of the output.
Returns: The output node.
Returns the blend mode for the given output name.
name
The name of the output.
Returns: The blend mode.
Returns true if the MRT node has an output with the given name.
name
The name of the output.
Returns: Whether the MRT node has an output for the given name or not.
Merges the outputs of the given MRT node with the outputs of this node.
mrtNode
The MRT to merge.
Returns: A new MRT node with merged outputs..
Sets the blend mode for the given output name.
name
The name of the output.
blend
The blending mode.
Returns: The current MRT node.