"use strict";exports.__esModule=!0,exports.default=void 0;var _RenderPass=require("three/examples/jsm/postprocessing/RenderPass"),_extension=require("../../core/extension"),_default=exports.default=(0,_extension.definePlugin)("render-pass",{setup(a,b){const c=b.container,d=c.offsetWidth,e=c.offsetHeight,f=new _RenderPass.RenderPass(b.scene,b.camera);return f.setSize(d,e),b.renderer.composer&&b.renderer.composer.addPass(f),{renderPass:f}},destroyed(){this.renderPass.dispose()}});