Constructor
new RTTNode( node : Node, width : number, height : number, options : Object )
Constructs a new RTT node.
| node |
The node to render a texture with. |
| width |
The width of the internal render target. If not width is applied, the render target is automatically resized. Default is |
| height |
The height of the internal render target. Default is |
| options |
The options for the internal render target. Default is |
Properties
.autoResize : boolean (readonly)
Whether the internal render target should automatically be resized or not.
Default is true.
.autoUpdate : boolean
Whether the texture should automatically be updated or not.
Default is true.
.height : number
The height of the internal render target.
Default is null.
.isRTTNode : boolean (readonly)
This flag can be used for type testing.
Default is true.
.pixelRatio : number
The pixel ratio
Default is 1.
.renderTarget : RenderTarget
The render target
.textureNeedsUpdate : boolean
Whether the texture requires an update or not.
Default is true.
.updateBeforeType : string
The updateBeforeType is set to NodeUpdateType.RENDER since the node updates
the texture once per render in its RTTNode#updateBefore method.
Default is 'render'.
- Overrides: TextureNode#updateBeforeType
.width : number
The width of the internal render target. If not width is applied, the render target is automatically resized.
Default is null.
Methods
.setPixelRatio( pixelRatio : number )
Sets the pixel ratio. This will also resize the render target.
| pixelRatio |
The pixel ratio to set. |
.setSize( width : number, height : number )
Sets the size of the internal render target
| width |
The width to set. |
| height |
The width to set. |