Skip to main content

Function: beginFullscreenReplacePass()

beginFullscreenReplacePass(renderContext, destination): void

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

Binds destination (or the canvas if null) as the current draw target, clears it, and disables blending. Shared by post-processing and present passes that fully replace a destination's contents with a full-screen draw: blending must be off first, since a full-screen pass replaces every pixel and must not blend with whatever was already there (blending is left enabled as global GL state by the render system's sprite drawing).

Parameters​

renderContext​

RenderContext

The rendering context.

destination​

RenderTarget | null

The render target to draw into, or null for the canvas.

Returns​

void