getTextureIndex

Last modified: Dec 31, 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
} ) ;
export {}

The MRT output is defined as a dictionary.

Constructor

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

Constructs a new output struct node.

AccessorType

Properties

PropertyTypeDefault Value
outputNodes{ [x: string]: Node; }
blendModes{ [x: string]: BlendMode; }
isMRTNodeboolean
MethodType

Extends

OutputStructNode

mrt

TSL function for creating a MRT node.

ParameterTypeDefault Value
outputNodesObject<string, Node>

Returns

MRTNode