Pass:setScissor

Edit

Sets the scissor rectangle. Any pixels outside the scissor rectangle will not be drawn.

Pass:setScissor(x, y, w, h)

Arguments

NameTypeDescription
xnumber The x coordinate of the upper-left corner of the scissor rectangle.
ynumber The y coordinate of the upper-left corner of the scissor rectangle.
wnumber The width of the scissor rectangle.
hnumber The height of the scissor rectangle.

Returns

Nothing

Notes

x and y can not be negative.

The default scissor rectangle covers the entire dimensions of the render pass textures.

See also