Skip to main content

RenderTexture(number width, number height, number depth)

Parameters:

NameTypeDescription
widthnumberTexture width in pixels.
heightnumberTexture height in pixels.
depthnumberNumber of bits in depth buffer (0, 16 or 24). Note that only 24 bit depth has stencil buffer.

Usage

---@type number
local width;

---@type number
local height;

---@type number
local depth;


local rendertexture = RenderTexture(width, height, depth);