UNPKG

@spearwolf/twopoint5d

Version:

Create 2.5D realtime graphics and pixelart with WebGL and three.js

17 lines 535 B
import { RenderPipeline } from 'three/webgpu'; export class RootRenderPipeline extends RenderPipeline { constructor(renderer) { super(renderer); } static buildOutputNode(passes) { if (passes.length === 0) { throw new Error('RootRenderPipeline.buildOutputNode: no passes to compose'); } let out = passes[0]; for (let i = 1; i < passes.length; i++) { out = out.add(passes[i]); } return out; } } //# sourceMappingURL=RootRenderPipeline.js.map