getTextureIndex

Last modified: Jul 15, 2025

Returns the MRT texture index for the given name.

ParameterTypeDefault Value
texturesArray<Texture>
namestring

Returns

number

MRTNode

This 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 } ) );

The MRT output is defined as a dictionary.

Constructor

new MRTNode(outputNodes)
ParameterTypeDefault Value
outputNodes{ [x: string]: Node; }

Constructs a new output struct node.

AccessorTypeModifiers
get typestringstatic
MethodTypeModifiers

Extends

OutputStructNode

mrt

ParameterTypeDefault Value
outputNodesObject<string, Node>

Returns

MRTNode