core.rendertarget.create
Client
Creates a new rendertarget instance
Syntax
local instance = core.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 entity = core.rendertarget.create({1920, 1080}, false)
entity:set_active()