Engine API Reference - v2.6.1
    Preparing search index...

    Function drawQuadWithShader

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

      Parameters

      • device: GraphicsDevice

        The graphics device used to draw the quad.

      • target: null | 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.

      • Optionalrect: Vec4

        The viewport rectangle of the quad, in pixels. Defaults to fullscreen: [0, 0, target.width, target.height].

      • OptionalscissorRect: Vec4

        The scissor rectangle of the quad, in pixels. Defaults to fullscreen: [0, 0, target.width, target.height].

      • ...args: any

      Returns void