Skip to main content

Function: drawFullscreenQuad()

drawFullscreenQuad(renderContext, material): void

Defined in: rendering/fullscreen-pass.ts:59

Draws a full-screen quad with material, whose uniforms must already be set. Shared by every pass that samples a texture and draws it directly (post-processing passes, presenting a render target onto the canvas): these differ only in which material, uniforms, and destination they use, not in how the draw call itself is issued.

Parameters​

renderContext​

RenderContext

The rendering context.

material​

Material

The material to draw with.

Returns​

void