Skip to content

quadRenderPass()

ts
function quadRenderPass<Context, U>(
  params: QuadPassParams<Context, U>,
): RenderPass<U, UniformContext>;

Creates a render pass that renders a full-screen quad (actually a single large triangle for performance reasons; see pmndrs/postprocessing and GCN execution patterns).

This is used for direct full-screen rendering. It is also the geometry primitive used by post-processing effects.

Uniform sources can be concrete values, functions, promises, or media descriptors. Use effectPass() or glCanvas() for post-processing pipelines and canvas lifecycle management.

Type Parameters

Context

Context extends UniformContext = UniformContext

U

U extends UniformSources<Context> = UniformSources<Context>

Parameters

params

QuadPassParams<Context, U>

Configuration for the quad render pass.

Returns

RenderPass<U, UniformContext>

Released under the MIT License.