effect-motion
API ReferencethreeNamespacesPostProcessingFunctions

makePipeline

function makePipeline(renderer, outputNode): RenderPipeline;

Function: makePipeline()

function makePipeline(renderer, outputNode): RenderPipeline;

Defined in: packages/three/src/PostProcessing.ts:130

Build a pipeline that draws a shader graph to the renderer's output.

Parameters

ParameterTypeDescription
rendererRendererThe renderer to draw with.
outputNodeunknownThe TSL node graph producing the final color.

Returns

RenderPipeline

Remarks

outputNode is the assembled TSL graph — a pass's texture straight through for a plain sRGB transform, or something composited from several sources. Its type is unknown on purpose; see the module overview.

Example

A scene drawn through a pipeline, so the sRGB output transform applies.

const scenePass = PostProcessing.pass(scene, camera);
const pipeline = PostProcessing.makePipeline(
	renderer,
	scenePass.getTextureNode(),
);
yield* PostProcessing.render(pipeline);

On this page