Skip to content

QuadPassParams<Context, U>

ts
type QuadPassParams<Context, U> = Omit<
  RenderPassParams<Context, U>,
  "vertex"
> & {
  vertex?: string;
};

Parameters for creating a quadRenderPass.

Inherits from RenderPassParams but makes the vertex shader optional.

Type Declaration

NameTypeDescription
vertex?stringOptional vertex shader. If omitted, the built-in full-screen triangle vertex shader is used and its UV varying is adapted to the fragment shader.

Type Parameters

Context

Context extends UniformContext = UniformContext

U

U extends UniformSources<Context> = UniformSources<Context>

Released under the MIT License.