UNPKG

threepipe

Version:

A modern 3D viewer framework built on top of three.js, written in TypeScript, designed to make creating high-quality, modular, and extensible 3D experiences on the web simple and enjoyable.

17 lines 632 B
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js'; import { ExtendedCopyPass } from './ExtendedCopyPass'; export class EffectComposer2 extends EffectComposer { constructor(renderer, renderTarget) { super(renderer, renderTarget); this.copyPass2 = new ExtendedCopyPass(); } setPixelRatio(pixelRatio, updateSize = true) { const t = this.setSize; if (!updateSize) this.setSize = () => { return; }; super.setPixelRatio(pixelRatio); if (!updateSize) this.setSize = t; } } //# sourceMappingURL=EffectComposer2.js.map