Pass:setScissor
EditSets the scissor rectangle. Any pixels outside the scissor rectangle will not be drawn.
Pass:setScissor(x, y, w, h)
Arguments
Name | Type | Description |
x | number | The x coordinate of the upper-left corner of the scissor rectangle. |
y | number | The y coordinate of the upper-left corner of the scissor rectangle. |
w | number | The width of the scissor rectangle. |
h | number | 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
Pass:setViewport
Pass