import{RenderPass}from"three/examples/jsm/postprocessing/RenderPass";import{definePlugin}from"../../core/extension";export default definePlugin("render-pass",{setup(a,b){const c=b.container,d=c.offsetWidth,e=c.offsetHeight,f=new RenderPass(b.scene,b.camera);return f.setSize(d,e),b.renderer.composer&&b.renderer.composer.addPass(f),{renderPass:f}},destroyed(){this.renderPass.dispose()}});