rendertarget.create
Client
Creates a new rendertarget instance
Syntax
local instance = rendertarget.create(
size,
transparent = false
)Parameters
| Type | Name | Description |
|---|---|---|
vector2 | size | Size of the rendertarget as {width, height} |
bool | transparent | Whether the rendertarget should have a transparent background |
Returns
| Type | Name | Description |
|---|---|---|
rendertarget | instance | Created rendertarget instance |
Examples
local rt = rendertarget.create({1920, 1080}, false)
rt:set_active()