rendertarget.create

Client

Creates a new rendertarget instance


Syntax

local instance = rendertarget.create(
    size,
    transparent = false
)

Parameters

TypeNameDescription
vector2sizeSize of the rendertarget as {width, height}
booltransparentWhether the rendertarget should have a transparent background

Returns

TypeNameDescription
rendertargetinstanceCreated rendertarget instance

Examples

Create a rendertarget and set it as active
local rt = rendertarget.create({1920, 1080}, false)

rt:set_active()

On this page