RTTNode

Last modified: Sep 8, 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?{ type?: number | undefined; autoUpdate?: boolean | undefined; resolutionScale?: number | undefined; }{"autoUpdate":true,"resolutionScale":1}

Constructs a new RTT node.

AccessorType

Properties

PropertyTypeDefault Value
isRTTNodeboolean—
nodeNode—
widthnull | number—
heightnull | number—
renderTargetRenderTarget—
textureNeedsUpdateboolean—
autoUpdateboolean—
_resolutionScalenumber—
_quadMeshQuadMesh—
_rendererStateObject—
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