renderPass()
ts
function renderPass<U>(
gl: WebGL2RenderingContext | undefined,
params: RenderPassParams<U>,
): RenderPass<U>;Creates a generic rendering pass.
This is the core primitive for rendering anything to the screen or a texture. It handles program creation, uniform management, attribute setup, and resizing.
Type Parameters
U
U extends Uniforms
Parameters
gl
The WebGL2 context. Can be undefined if you intend to initialize the pass later.
WebGL2RenderingContext | undefined
params
Configuration for the render pass.
Returns
RenderPass<U>