getTextureIndex

Last modified: Aug 14, 2026

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; }—
clearColors{ [x: string]: Color4; }—
isMRTNodeboolean—
MethodType

Extends

OutputStructNode

mrt

TSL function for creating a MRT node.

ParameterTypeDefault Value
outputNodesObject<string, Node>—

Returns

MRTNode