Pass:getDimensions

Edit

Returns the dimensions of the textures of the Pass's canvas, in pixels.

width, height = Pass:getDimensions()

Arguments

None

Returns

NameTypeDescription
widthnumber The texture width.
heightnumber The texture height.

Notes

If the pass doesn't have a canvas, this function returns zeros.

See also