• Draws a screen-space quad using a specific shader.

    Parameters

    • device: GraphicsDevice

      The graphics device used to draw the quad.

    • target: RenderTarget

      The destination render target. If undefined, target is the frame buffer.

    • shader: Shader

      The shader used for rendering the quad. Vertex shader should contain attribute vec2 vertex_position.

    • Optional rect: Vec4

      The viewport rectangle of the quad, in pixels. Defaults to fullscreen (0, 0, target.width, target.height).

    • Optional scissorRect: Vec4

      The scissor rectangle of the quad, in pixels. Defaults to fullscreen (0, 0, target.width, target.height).

    • Rest ...args: any

    Returns void