Returns the MRT texture index for the given name.
| Parameter | Type | Default Value |
|---|---|---|
| textures | Array<Texture> | — |
| name | string | — |
Returns
numberThis node can be used setup a MRT context for rendering. A typical MRT setup for post-processing is shown below:
const mrtNode = mrt( {
output: output,
normal: normalView
} ) ;
export {}The MRT output is defined as a dictionary.
Constructor
new MRTNode(outputNodes)| Parameter | Type | Default Value |
|---|---|---|
| outputNodes | { [x: string]: Node; } | — |
Constructs a new output struct node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| outputNodes | { [x: string]: Node; } | — | |
| blendModes | { [x: string]: BlendMode; } | — | |
| isMRTNode | boolean | — | |
| Method | Type | |
|---|---|---|
| setBlendMode | (name: string, blend: BlendMode) => MRTNode | |
| getBlendMode | (name: string) => BlendMode | |
| has | (name: string) => NodeBuilder | |
| get | (name: string) => Node | |
| merge | (mrtNode: MRTNode) => MRTNode | |
| setup | (builder: any) => null | Node | |
Extends
OutputStructNodeTSL function for creating a MRT node.
| Parameter | Type | Default Value |
|---|---|---|
| outputNodes | Object<string, Node> | — |
Returns
MRTNode