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
| Parameter | Type | Description |
|---|---|---|
renderer | Renderer | The renderer to draw with. |
outputNode | unknown | The TSL node graph producing the final color. |
Returns
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);