Methods
resize(width, height) → {RenderTarget}
Resizes the renderTarget and all attached textures by the provided height and width.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
width |
number
|
The new width of the renderTarget. |
height |
number
|
The new height of the renderTarget. |
setColorTarget(texture, index, target) → {RenderTarget}
Attaches the provided texture to the provided attachment location.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
texture |
Texture2D
|
The texture to attach. |
index |
number
|
The attachment index. (optional) |
target |
string
|
The texture target type. (optional) |
setDepthTarget(texture) → {RenderTarget}
Attaches the provided texture to the provided attachment location.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
texture |
Texture2D
|
The texture to attach. |