RenderTexture(number width, number height, number depth)
Parameters:
Name | Type | Description |
---|---|---|
width | number | Texture width in pixels. |
height | number | Texture height in pixels. |
depth | number | Number 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);