Shadow

gfx.shadow.get_canvas_texture_size

Client

Retrieves the current size of the 2D shadow texture

Syntax

local result = gfx.shadow.get_canvas_texture_size()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
intresultCurrent texture size in pixels

Examples

Print the 2D shadow texture size
core.engine.print("info", "Canvas shadow texture size:", gfx.shadow.get_canvas_texture_size())

On this page