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?)| Parameter | Type | Default Value |
|---|---|---|
| node | Node | — |
| width? | null | number | null |
| height? | null | number | null |
| options? | Object | {"type":1016} |
Constructs a new RTT node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
| get autoResize | boolean | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| isRTTNode | boolean | — | |
| node | Node | — | |
| width | null | number | — | |
| height | null | number | — | |
| pixelRatio | number | — | |
| renderTarget | RenderTarget | — | |
| textureNeedsUpdate | boolean | — | |
| autoUpdate | boolean | — | |
| _rttNode | Node | — | |
| _quadMesh | QuadMesh | — | |
| Method | Type | |
|---|---|---|
| setup | (builder: any) => void | |
| setSize | (width: number, height: number) => void | |
| setPixelRatio | (pixelRatio: number) => void | |
| updateBefore | ({ renderer }: { renderer: any; }) => void | |
| clone | () => TextureNode | |
Extends
TextureNodeTSL function for creating a RTT node.
| Parameter | Type | Default Value |
|---|---|---|
| node | Node | — |
| params | ...Array<any> | — |
Returns
RTTNodeTSL function for converting nodes to textures nodes.
| Parameter | Type | Default Value |
|---|---|---|
| node | Node | — |
| params | ...Array<any> | — |
Returns
RTTNode