The graphics device used to draw the quad.
The destination render target. If undefined, target is the frame buffer.
The shader used for rendering the quad. Vertex
shader should contain attribute vec2 vertex_position
.
Optional
rect: Vec4The viewport rectangle of the quad, in
pixels. Defaults to fullscreen (0, 0, target.width, target.height
).
Optional
scissorRect: Vec4The scissor rectangle of the
quad, in pixels. Defaults to fullscreen (0, 0, target.width, target.height
).
Rest
...args: any
Draws a screen-space quad using a specific shader.