Shadow

gfx.shadow.set_canvas_texture_size

Client

Sets the size of the 2D shadow texture

Syntax

local status = gfx.shadow.set_canvas_texture_size(
    size
)

Only 2D light shadows are affected.

Parameters

TypeNameDescription
intsizeTexture size in pixels
Must be between 256 and 16384, values that are not a power of two are rounded up to the next one
An error is raised if the value is out of range

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set a 4096 2D shadow texture
gfx.shadow.set_canvas_texture_size(4096)

On this page