RTTNode

Last modified: Feb 2, 2026

RTTNode takes another node and uses it with a QuadMesh to render into a texture (RTT). This module is especially relevant in context of post processing where certain nodes require texture input for their effects. With the helper function convertToTexture() which is based on this module, the node system can automatically ensure texture input if required.

Constructor

new RTTNode(node, width?, height?, options?)
ParameterTypeDefault Value
nodeNode
width?null | numbernull
height?null | numbernull
options?Object{"type":1016}

Constructs a new RTT node.

AccessorType

Properties

PropertyTypeDefault Value
isRTTNodeboolean
nodeNode
widthnull | number
heightnull | number
pixelRationumber
renderTargetRenderTarget
textureNeedsUpdateboolean
autoUpdateboolean
_rttNodeNode
_quadMeshQuadMesh
MethodType

Extends

TextureNode

rtt

TSL function for creating a RTT node.

ParameterTypeDefault Value
nodeNode
params...Array<any>

Returns

RTTNode

convertToTexture

TSL function for converting nodes to textures nodes.

ParameterTypeDefault Value
nodeNode
params...Array<any>

Returns

RTTNode